summaryrefslogtreecommitdiffstats
path: root/AppPkg/Applications/Python/Python-2.7.2/Lib/test/badsyntax_future6.py
diff options
context:
space:
mode:
Diffstat (limited to 'AppPkg/Applications/Python/Python-2.7.2/Lib/test/badsyntax_future6.py')
-rw-r--r--AppPkg/Applications/Python/Python-2.7.2/Lib/test/badsyntax_future6.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/AppPkg/Applications/Python/Python-2.7.2/Lib/test/badsyntax_future6.py b/AppPkg/Applications/Python/Python-2.7.2/Lib/test/badsyntax_future6.py
new file mode 100644
index 0000000000..f01d788679
--- /dev/null
+++ b/AppPkg/Applications/Python/Python-2.7.2/Lib/test/badsyntax_future6.py
@@ -0,0 +1,10 @@
+"""This is a test"""
+"this isn't a doc string"
+from __future__ import nested_scopes
+
+def f(x):
+ def g(y):
+ return x + y
+ return g
+
+result = f(2)(4)