[pypy-commit] pypy py3k: compile doesn't accept code objects

pjenvey noreply at buildbot.pypy.org
Fri Dec 14 00:46:25 CET 2012


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r59420:7343ddfdbff3
Date: 2012-12-13 15:46 -0800
http://bitbucket.org/pypy/pypy/changeset/7343ddfdbff3/

Log:	compile doesn't accept code objects

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
@@ -39,7 +39,7 @@
         ast_node.sync_app_attrs(space)
     else:
         source, flags = source_as_str(space, w_source, 'compile',
-                                      "string, bytes, AST or code", flags)
+                                      "string, bytes or AST", flags)
 
     if not dont_inherit:
         caller = ec.gettopframe_nohidden()


More information about the pypy-commit mailing list