[New-bugs-announce] [issue6125] 2to3 mishandles "from module_name import" when module_name includes an underscore
Mitchell Model
report at bugs.python.org
Wed May 27 20:53:14 CEST 2009
New submission from Mitchell Model <mlm at acm.org>:
2to3 -f import l.py
--- l.py (original)
File p.py (the four modules exist in the same directory as p.py):
from mod_a import a
from modb import b
from mod_c import *
from modd import *
% 2to3 -f import p.py
+++ p.py (refactored)
@@ -1,5 +1,5 @@
-from mod_a import a
-from modb import b
-from mod_c import *
-from modd import *
+from .mod_a import a
+from .modb import b
+from .mod_c import *
+from .modd import *
----------
components: 2to3 (2.x to 3.0 conversion tool)
messages: 88427
nosy: MLModel
severity: normal
status: open
title: 2to3 mishandles "from module_name import" when module_name includes an underscore
versions: Python 2.7, Python 3.0, Python 3.1
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6125>
_______________________________________
More information about the New-bugs-announce
mailing list