Author: Amaury Forgeot d'Arc <[email protected]>
Branch:
Changeset: r72880:0da7325d54c6
Date: 2014-08-18 09:16 +0200
http://bitbucket.org/pypy/pypy/changeset/0da7325d54c6/
Log: Fix after merge.
diff --git a/pypy/module/__builtin__/compiling.py
b/pypy/module/__builtin__/compiling.py
--- a/pypy/module/__builtin__/compiling.py
+++ b/pypy/module/__builtin__/compiling.py
@@ -59,9 +59,8 @@
"compile() expected string without null bytes"))
if flags & consts.PyCF_ONLY_AST:
- mode = ec.compiler.compile_to_ast(str_, filename, mode, flags)
- w_node = node.to_object(space)
- return w_node
+ node = ec.compiler.compile_to_ast(source, filename, mode, flags)
+ return node.to_object(space)
else:
code = ec.compiler.compile(source, filename, mode, flags)
return space.wrap(code)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit