fixed PY-5202 Move statement: breaks code on moving outside with statement

This commit is contained in:
Ekaterina Tuzova
2011-12-02 15:21:48 +01:00
parent 2d56553295
commit 14d89ce4c6
5 changed files with 52 additions and 22 deletions
+6
View File
@@ -0,0 +1,6 @@
def temp(filepath):
a = 1
with open(filepath) as f:
l = <caret>f.readlines()
for line in l:
a = 1
+6
View File
@@ -0,0 +1,6 @@
def temp(filepath):
a = 1
with open(filepath) as f:
for line in l:
l = f.readlines()
a = 1
+6
View File
@@ -0,0 +1,6 @@
def temp(filepath):
a = 1
l = f.readlines()
with open(filepath) as f:
for line in l:
a = 1