Try to update import inplace on moving its target (PY-13870)

For example, a conditional import must remain under its condition
during the refatoring.
This commit is contained in:
Andrey Vlasovskikh
2014-11-10 16:38:18 +03:00
parent cc6fdcd5c9
commit d10a06d4ff
13 changed files with 48 additions and 20 deletions
@@ -0,0 +1,6 @@
if True:
import pkgutil
else:
from pkg1 import mod2 as pkgutil
print(pkgutil)
@@ -0,0 +1,6 @@
if True:
import pkgutil
else:
import mod2 as pkgutil
print(pkgutil)