mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Merged revisions 65141 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ................ r65141 | benjamin.peterson | 2008-07-19 09:14:06 -0500 (Sat, 19 Jul 2008) | 9 lines Merged revisions 65137 via svnmerge from svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3 ........ r65137 | georg.brandl | 2008-07-19 08:32:57 -0500 (Sat, 19 Jul 2008) | 2 lines #3334: correctly set prefix of imports. ........ ................
This commit is contained in:
parent
7d4f39a2ba
commit
0f6de936f8
2 changed files with 12 additions and 1 deletions
|
@ -45,7 +45,7 @@ class FixImport(fixer_base.BaseFix):
|
|||
node.changed()
|
||||
else:
|
||||
new = FromImport('.', getattr(imp, 'content', None) or [imp])
|
||||
new.prefix = node.get_prefix()
|
||||
new.set_prefix(node.get_prefix())
|
||||
node = new
|
||||
return node
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue