]> granicus.if.org Git - python/commitdiff
compile doesn't accept code objects
authorPhilip Jenvey <pjenvey@underboss.org>
Thu, 13 Dec 2012 23:44:18 +0000 (15:44 -0800)
committerPhilip Jenvey <pjenvey@underboss.org>
Thu, 13 Dec 2012 23:44:18 +0000 (15:44 -0800)
Python/bltinmodule.c

index fac64bcc69ffab084a392bb2719c8d1b51173105..6f52a9a8cf1bc6abc0eab2a3bb9bc14051162109 100644 (file)
@@ -657,7 +657,7 @@ builtin_compile(PyObject *self, PyObject *args, PyObject *kwds)
         goto finally;
     }
 
-    str = source_as_string(cmd, "compile", "string, bytes, AST or code", &cf);
+    str = source_as_string(cmd, "compile", "string, bytes or AST", &cf);
     if (str == NULL)
         goto error;