[pypy-svn] r42732 - pypy/dist/pypy/lang/js

cfbolz at codespeak.net cfbolz at codespeak.net
Sun May 6 11:15:33 CEST 2007


Author: cfbolz
Date: Sun May  6 11:15:33 2007
New Revision: 42732

Modified:
   pypy/dist/pypy/lang/js/jsobj.py
Log:
2.5 compatibility: self.args is enforced to be an iterable


Modified: pypy/dist/pypy/lang/js/jsobj.py
==============================================================================
--- pypy/dist/pypy/lang/js/jsobj.py	(original)
+++ pypy/dist/pypy/lang/js/jsobj.py	Sun May  6 11:15:33 2007
@@ -15,7 +15,8 @@
 
 class ThrowException(JsBaseExcept):
     def __init__(self, exception):
-        self.exception = self.args = exception
+        self.exception = exception
+        self.args = [exception]
 
 class JsTypeError(JsBaseExcept):
     pass



More information about the Pypy-commit mailing list