[Python-3000-checkins] r59282 - python/branches/py3k/Parser/asdl_c.py

christian.heimes python-3000-checkins at python.org
Sun Dec 2 23:43:01 CET 2007


Author: christian.heimes
Date: Sun Dec  2 23:43:00 2007
New Revision: 59282

Modified:
   python/branches/py3k/Parser/asdl_c.py
Log:
Fixed a problem found by Bill Janssen on Mac OS X
There was one occurence of PyInt_FromLong left in Parser/asdl_c.py. The files creates some C code.

Modified: python/branches/py3k/Parser/asdl_c.py
==============================================================================
--- python/branches/py3k/Parser/asdl_c.py	(original)
+++ python/branches/py3k/Parser/asdl_c.py	Sun Dec  2 23:43:00 2007
@@ -469,7 +469,7 @@
 
 static PyObject* ast2obj_int(long b)
 {
-    return PyInt_FromLong(b);
+    return PyLong_FromLong(b);
 }
 """, 0, reflow=False)
 


More information about the Python-3000-checkins mailing list