[pypy-svn] rev 814 - pypy/trunk/src/pypy/interpreter
mwh at codespeak.net
mwh at codespeak.net
Mon Jun 16 20:02:02 CEST 2003
Author: mwh
Date: Mon Jun 16 20:02:00 2003
New Revision: 814
Modified:
pypy/trunk/src/pypy/interpreter/pycode_app.py
Log:
fix potential UnboundLocalError
Modified: pypy/trunk/src/pypy/interpreter/pycode_app.py
==============================================================================
--- pypy/trunk/src/pypy/interpreter/pycode_app.py (original)
+++ pypy/trunk/src/pypy/interpreter/pycode_app.py Mon Jun 16 20:02:00 2003
@@ -71,6 +71,8 @@
# XXX This should be improved to show the parameters that
# shouldn't be here.
raise TypeError, 'Setting keyword parameter that does not exist in formal parameter list.'
+ else:
+ newkw = {}
# Fill in with defaults, starting at argcount - defcount
if defs:
More information about the Pypy-commit
mailing list