mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 09:20:53 +07:00
Fixed extract method for fragments with nonlocal variables (PY-6625)
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user