[issue37423] 2to3 wraps a already bracketed print statement with another brackets
Jim Li
report at bugs.python.org
Wed Jun 26 19:57:50 EDT 2019
New submission from Jim Li <jimli at 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 <report at bugs.python.org>
<https://bugs.python.org/issue37423>
_______________________________________
More information about the Python-bugs-list
mailing list