[pypy-svn] r74556 - pypy/trunk/pypy/module/cpyext
afa at codespeak.net
afa at codespeak.net
Wed May 19 02:27:32 CEST 2010
Author: afa
Date: Wed May 19 02:27:31 2010
New Revision: 74556
Modified:
pypy/trunk/pypy/module/cpyext/sysmodule.py
Log:
Don't borrow a reference from an object which has no reference
Modified: pypy/trunk/pypy/module/cpyext/sysmodule.py
==============================================================================
--- pypy/trunk/pypy/module/cpyext/sysmodule.py (original)
+++ pypy/trunk/pypy/module/cpyext/sysmodule.py Wed May 19 02:27:31 2010
@@ -10,7 +10,7 @@
name = rffi.charp2str(name)
w_dict = space.sys.getdict()
w_obj = space.finditem_str(w_dict, name)
- return borrow_from(w_dict, w_obj)
+ return borrow_from(None, w_obj)
@cpython_api([CONST_STRING, PyObject], rffi.INT_real, error=-1)
def PySys_SetObject(space, name, w_obj):
More information about the Pypy-commit
mailing list