Fixed extract method for fragments with nonlocal variables (PY-6625)

This commit is contained in:
Andrey Vlasovskikh
2012-05-23 20:22:13 +04:00
parent f4f66b0f32
commit bd42933bd2
10 changed files with 126 additions and 32 deletions

View File

@@ -1,8 +1,9 @@
print("start")
<begin>
import foo
<end>
foo.bar
def foo():
print("start")
<begin>
import foo
<end>
foo.bar
<result>
In:
Out:

View File

@@ -1,8 +1,9 @@
print("start")
<begin>
aaa = 123
<end>
print(aaa)
def foo():
print("start")
<begin>
aaa = 123
<end>
print(aaa)
<result>
In:
Out: