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

fijal at codespeak.net fijal at codespeak.net
Fri Apr 9 22:09:12 CEST 2010


Author: fijal
Date: Fri Apr  9 22:09:10 2010
New Revision: 73603

Modified:
   pypy/branch/cpython-extension/pypy/module/cpyext/unicodeobject.py
Log:
fix that, untested!


Modified: pypy/branch/cpython-extension/pypy/module/cpyext/unicodeobject.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/unicodeobject.py	(original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/unicodeobject.py	Fri Apr  9 22:09:10 2010
@@ -139,7 +139,7 @@
     the Python codec registry. Return NULL if an exception was raised by the
     codec."""
     if not PyUnicode_Check(space, w_unicode):
-        PyErr_BadArgument()
+        PyErr_BadArgument(space)
 
     w_encoding = w_errors = None
     if encoding:



More information about the Pypy-commit mailing list