summaryrefslogtreecommitdiff
path: root/lib/python2.7/test/badsyntax_future9.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python2.7/test/badsyntax_future9.py')
-rw-r--r--lib/python2.7/test/badsyntax_future9.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/python2.7/test/badsyntax_future9.py b/lib/python2.7/test/badsyntax_future9.py
new file mode 100644
index 0000000..cdce32a
--- /dev/null
+++ b/lib/python2.7/test/badsyntax_future9.py
@@ -0,0 +1,10 @@
+"""This is a test"""
+
+from __future__ import nested_scopes, braces
+
+def f(x):
+ def g(y):
+ return x + y
+ return g
+
+print f(2)(4)