[pypy-svn] r73408 - pypy/branch/cpython-extension/pypy/module/cpyext

fijal at codespeak.net fijal at codespeak.net
Mon Apr 5 05:35:22 CEST 2010


Author: fijal
Date: Mon Apr  5 05:35:20 2010
New Revision: 73408

Modified:
   pypy/branch/cpython-extension/pypy/module/cpyext/getargs.py
Log:
explode in a more reasonable manner


Modified: pypy/branch/cpython-extension/pypy/module/cpyext/getargs.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/getargs.py	(original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/getargs.py	Mon Apr  5 05:35:20 2010
@@ -30,4 +30,6 @@
                                space.int_w(space.getitem(w_obj, space.wrap(i))))
         elif c == ':':
             return 1
+        else:
+            raise Exception("Unsupported parameter: %s" % (c,))
         i += 1



More information about the Pypy-commit mailing list