[pypy-svn] rev 446 - pypy/trunk/src/pypy/module

tismer at codespeak.net tismer at codespeak.net
Mon May 26 15:39:52 CEST 2003


Author: tismer
Date: Mon May 26 15:39:51 2003
New Revision: 446

Modified:
   pypy/trunk/src/pypy/module/builtin.py
Log:
no default args for extmodule

Modified: pypy/trunk/src/pypy/module/builtin.py
==============================================================================
--- pypy/trunk/src/pypy/module/builtin.py	(original)
+++ pypy/trunk/src/pypy/module/builtin.py	Mon May 26 15:39:51 2003
@@ -23,19 +23,12 @@
     len = appmethod(len)
 
     def compile(self, w_str, w_filename, w_startstr,
-                w_supplied_flags=None, w_dont_inherit=None):
+                w_supplied_flags, w_dont_inherit):
         str = space.unwrap(w_str)
         filename = space.unwrap(w_filename)
         startstr = space.unwrap(w_startstr)
-        if w_supplied_flags is None:
-            supplied_flags = 0
-        else:
-            supplied_flags = space.unwrap(w_supplied_flags)
-        if w_dont_inherit is None:
-            dont_inherit = False
-        else:
-            dont_inherit = space.unwrap(w_dont_inherit)
-
+        supplied_flags = space.unwrap(w_supplied_flags)
+        dont_inherit = space.unwrap(w_dont_inherit)
         c = _b.compile(str, filename, startstr, supplied_flags, dont_inherit)
         res = PyByteCode()
         res._from_code(c)


More information about the Pypy-commit mailing list