New submission from Jim Li <ji...@bcgsc.ca>:

I encountered this issue when I was running 2to3 on a package, Python version 
3.7.2, CentOS 7.

To reproduce this bug, create a file called test.py and paste the following 
code into it

def testSomeRequest(self):

    request = {"someRequest": "request"}
    response = self.sendSearchRequest(request)
    print(response.next_page_token)

The 2to3 tool would do the following:

-    print(response.next_page_token)
+    print((response.next_page_token))

Is this behaviour expected? Thank you.

----------
components: 2to3 (2.x to 3.x conversion tool)
messages: 346702
nosy: jimli
priority: normal
severity: normal
status: open
title: 2to3 wraps a already bracketed print statement with another brackets
versions: Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37423>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to