[prev in list] [next in list] [prev in thread] [next in thread]
List: python-bugs-list
Subject: [issue12873] 2to3 incorrectly handles multi-line imports from
From: Arfrever Frehtes Taifersar Arahesis <report () bugs ! python ! org>
Date: 2011-08-31 21:57:21
Message-ID: 1314827841.27.0.752701109449.issue12873 () psf ! upfronthosting ! co ! za
[Download RAW message or body]
New submission from Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com>:
$ cat test1.py
from __future__ import (absolute_import, division,
print_function, unicode_literals)
print(1, 2)
$ cat test2.py
from __future__ import (absolute_import, division, print_function, unicode_literals)
print(1, 2)
$ python2.7 -c 'import test1'
1 2
$ python2.7 -c 'import test2'
1 2
$ 2to3 test1.py test2.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored test1.py
--- test1.py (original)
+++ test1.py (refactored)
@@ -1,4 +1,4 @@
from __future__ import (absolute_import, division,
print_function, unicode_literals)
-print(1, 2)
+print((1, 2))
RefactoringTool: Files that need to be modified:
RefactoringTool: test1.py
----------
components: 2to3 (2.x to 3.0 conversion tool)
messages: 143283
nosy: Arfrever, benjamin.peterson
priority: normal
severity: normal
status: open
title: 2to3 incorrectly handles multi-line imports from __future__
versions: Python 2.7, Python 3.2, Python 3.3
_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue12873>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/python-bugs-list%40marc.info
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic