[pypy-svn] r8834 - pypy/dist/pypy/module
tismer at codespeak.net
tismer at codespeak.net
Thu Feb 3 17:37:13 CET 2005
Author: tismer
Date: Thu Feb 3 17:37:13 2005
New Revision: 8834
Modified:
pypy/dist/pypy/module/exceptionsinterp.py
Log:
made it impossible to run the init code twice, which
would cause an attempt too double-wrap __doc__
Modified: pypy/dist/pypy/module/exceptionsinterp.py
==============================================================================
--- pypy/dist/pypy/module/exceptionsinterp.py (original)
+++ pypy/dist/pypy/module/exceptionsinterp.py Thu Feb 3 17:37:13 2005
@@ -976,7 +976,7 @@
##SECTION##
## filename 'D:\\pypy\\dist\\pypy\\translator\\geninterplevel.py'
## function 'test_exceptions'
-## firstlineno 1261
+## firstlineno 1272
##SECTION##
# global declarations
# global object gfunc_test_exceptions
@@ -1140,6 +1140,8 @@
"""NOT_RPYTHON"""
class m: pass # fake module
m.__dict__ = globals()
+ # make sure that this function is run only once:
+ m.inittest_exceptions_1 = lambda *ign:True
from pypy.interpreter.gateway import interp2app
m.gfunc_test_exceptions = space.wrap(interp2app(f_test_exceptions))
More information about the Pypy-commit
mailing list