fixed PY-6835 Convert lambda to function: leads to syntactically incorrect code when lambda expression is the only statement in function

This commit is contained in:
Ekaterina Tuzova
2012-06-26 20:44:58 +04:00
parent f6915b27c7
commit a2843202bd
4 changed files with 18 additions and 18 deletions
@@ -0,0 +1,5 @@
def transform():
def function(x):
return x + 5
return function
@@ -0,0 +1,2 @@
def transform():
return lambda <caret>x: x + 5