[pypy-svn] r74555 - pypy/trunk/pypy/module/cpyext
afa at codespeak.net
afa at codespeak.net
Wed May 19 02:26:00 CEST 2010
Author: afa
Date: Wed May 19 02:25:58 2010
New Revision: 74555
Modified:
pypy/trunk/pypy/module/cpyext/pyobject.py
pypy/trunk/pypy/module/cpyext/state.py
pypy/trunk/pypy/module/cpyext/typeobjectdefs.py
Log:
remove unused imports
Modified: pypy/trunk/pypy/module/cpyext/pyobject.py
==============================================================================
--- pypy/trunk/pypy/module/cpyext/pyobject.py (original)
+++ pypy/trunk/pypy/module/cpyext/pyobject.py Wed May 19 02:25:58 2010
@@ -169,7 +169,6 @@
def init_r2w_from_w2r(self):
"""Rebuilds the dict py_objects_r2w on startup"""
- from pypy.module.cpyext.api import ADDR
for w_obj, obj in self.py_objects_w2r.items():
ptr = rffi.cast(ADDR, obj)
self.py_objects_r2w[ptr] = w_obj
Modified: pypy/trunk/pypy/module/cpyext/state.py
==============================================================================
--- pypy/trunk/pypy/module/cpyext/state.py (original)
+++ pypy/trunk/pypy/module/cpyext/state.py Wed May 19 02:25:58 2010
@@ -30,7 +30,6 @@
def clear_exception(self):
"""Clear the current exception state, and return the operror."""
- from pypy.module.cpyext.api import ADDR
operror = self.operror
self.operror = None
return operror
Modified: pypy/trunk/pypy/module/cpyext/typeobjectdefs.py
==============================================================================
--- pypy/trunk/pypy/module/cpyext/typeobjectdefs.py (original)
+++ pypy/trunk/pypy/module/cpyext/typeobjectdefs.py Wed May 19 02:25:58 2010
@@ -2,7 +2,7 @@
from pypy.rpython.lltypesystem.lltype import Ptr, FuncType, Void
from pypy.module.cpyext.api import cpython_struct, \
PyVarObjectFields, Py_ssize_t, Py_TPFLAGS_READYING, \
- Py_TPFLAGS_READY, Py_TPFLAGS_HEAPTYPE, ADDR, \
+ Py_TPFLAGS_READY, Py_TPFLAGS_HEAPTYPE, \
PyTypeObject, PyTypeObjectPtr, PyBufferProcs
from pypy.module.cpyext.pyobject import PyObject, make_ref, from_ref
from pypy.module.cpyext.modsupport import PyMethodDef
More information about the Pypy-commit
mailing list