[pypy-commit] pypy default: Fix after merge.

amauryfa noreply at buildbot.pypy.org
Mon Aug 18 16:05:37 CEST 2014


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
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)


More information about the pypy-commit mailing list