[New-bugs-announce] [issue11276] 2to3: imports fixer doesn't update references to modules specified without attributes

Arfrever Frehtes Taifersar Arahesis report at bugs.python.org
Mon Feb 21 21:32:50 CET 2011


New submission from Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA at GMail.Com>:

$ cat test.py
import cPickle
cPickle
cPickle.load
$ 2to3 -f imports test.py
RefactoringTool: Refactored test.py
--- test.py     (original)
+++ test.py     (refactored)
@@ -1,3 +1,3 @@
-import cPickle
+import pickle
 cPickle
-cPickle.load
+pickle.load
RefactoringTool: Files that need to be modified:
RefactoringTool: test.py

----------
components: 2to3 (2.x to 3.0 conversion tool)
messages: 128991
nosy: Arfrever
priority: normal
severity: normal
status: open
title: 2to3: imports fixer doesn't update references to modules specified without attributes
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11276>
_______________________________________


More information about the New-bugs-announce mailing list