[pypy-svn] r73449 - pypy/branch/cpython-extension/pypy/module/cpyext
trundle at codespeak.net
trundle at codespeak.net
Tue Apr 6 11:42:44 CEST 2010
Author: trundle
Date: Tue Apr 6 11:42:43 2010
New Revision: 73449
Modified:
pypy/branch/cpython-extension/pypy/module/cpyext/pyerrors.py
Log:
Typo.
Modified: pypy/branch/cpython-extension/pypy/module/cpyext/pyerrors.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/pyerrors.py (original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/pyerrors.py Tue Apr 6 11:42:43 2010
@@ -143,8 +143,8 @@
warnings module and the -W option in the command line
documentation. There is no C API for warning control."""
message = rffi.charp2str(message_ptr)
- if category is None:
- category = space.gettypeobject(W_RuntimeWarning.typedef)
+ if w_category is None:
+ w_category = space.gettypeobject(W_RuntimeWarning.typedef)
os.write(2, "WARNING: " + message + "\n")
return 0
More information about the Pypy-commit
mailing list