Message331104
| Author |
xtreak |
| Recipients |
benjamin.peterson, jondaa, xtreak |
| Date |
2018年12月05日.12:33:08 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1544013188.3.0.788709270274.issue35417@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Thanks for the report. Is this similar to issue10375 ? One option would be to use -p to stop transforming print related code if you don't want to transform any print statement.
$ cat /tmp/foo.py
print (1)
$ 2to3 /tmp/foo.py
[snip]
--- /tmp/foo.py (original)
+++ /tmp/foo.py (refactored)
@@ -1 +1 @@
-print (1)
+print((1))
$ 2to3 -p /tmp/foo.py
RefactoringTool: Skipping optional fixer: buffer
RefactoringTool: Skipping optional fixer: idioms
RefactoringTool: Skipping optional fixer: set_literal
RefactoringTool: Skipping optional fixer: ws_comma
RefactoringTool: No files need to be modified. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2018年12月05日 12:33:08 | xtreak | set | recipients:
+ xtreak, benjamin.peterson, jondaa |
| 2018年12月05日 12:33:08 | xtreak | set | messageid: <1544013188.3.0.788709270274.issue35417@psf.upfronthosting.co.za> |
| 2018年12月05日 12:33:08 | xtreak | link | issue35417 messages |
| 2018年12月05日 12:33:08 | xtreak | create |
|