[issue37423] 2to3 wraps a already bracketed print statement with another brackets

2019-06-26 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This is a duplicate of https://bugs.python.org/issue10375 -- nosy: +xtreak ___ Python tracker ___ _

[issue37423] 2to3 wraps a already bracketed print statement with another brackets

2019-06-26 Thread Eric V. Smith
Eric V. Smith added the comment: You might also want to look at python-modernize or similar tools. -- resolution: -> not a bug stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker __

[issue37423] 2to3 wraps a already bracketed print statement with another brackets

2019-06-26 Thread Jim Li
Jim Li added the comment: Thanks Eric. That does make sense. The code wasn't really Python 3, it was migrated from 2.7, which uses some Python 3 syntax. As a side note, if you run 2to3 on this instead of the previous `print(response.next_page_token)` print(response) Then 2to3 would say tha

[issue37423] 2to3 wraps a already bracketed print statement with another brackets

2019-06-26 Thread Eric V. Smith
Eric V. Smith added the comment: 2to3 is designed to convert python2 code to python3. It is not designed to work on python3 code. I believe this behavior is correct. -- nosy: +eric.smith ___ Python tracker ___

[issue37423] 2to3 wraps a already bracketed print statement with another brackets

2019-06-26 Thread Jim Li
New submission from Jim Li : 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"} respon