mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
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:
@@ -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)
|
||||
Reference in New Issue
Block a user