Author: georg.brandl
Date: Sat Sep  1 17:25:27 2007
New Revision: 57872

Modified:
   python/branches/py3k/Tools/bgen/bgen/bgenGenerator.py
Log:
Use symbolic name for METH_VARAGS.


Modified: python/branches/py3k/Tools/bgen/bgen/bgenGenerator.py
==============================================================================
--- python/branches/py3k/Tools/bgen/bgen/bgenGenerator.py       (original)
+++ python/branches/py3k/Tools/bgen/bgen/bgenGenerator.py       Sat Sep  1 
17:25:27 2007
@@ -68,7 +68,7 @@
         if self.condition:
             Output()
             Output(self.condition)
-        Output("{\"%s\", (PyCFunction)%s_%s, 1,", name, self.prefix, self.name)
+        Output("{\"%s\", (PyCFunction)%s_%s, METH_VARARGS,", name, 
self.prefix, self.name)
         Output(" PyDoc_STR(%s)},", stringify(docstring))
         if self.condition:
             Output("#endif")
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to