Author: Alex Gaynor <[email protected]> Branch: Changeset: r62568:9aaaf0245344 Date: 2013-03-20 13:24 -0700 http://bitbucket.org/pypy/pypy/changeset/9aaaf0245344/
Log: (alex, armin): remove unused objspace/proxy diff --git a/pypy/objspace/proxy.py b/pypy/objspace/proxy.py deleted file mode 100644 --- a/pypy/objspace/proxy.py +++ /dev/null @@ -1,23 +0,0 @@ -from pypy.interpreter.baseobjspace import ObjSpace - -# __________________________________________________________________________ - -def get_operations(): - return [r[0] for r in ObjSpace.MethodTable] + ObjSpace.IrregularOpTable - -def patch_space_in_place(space, proxyname, proxymaker, operations=None): - """Patches the supplied space.""" - - if operations is None: - operations = get_operations() - - for name in operations: - parentfn = getattr(space, name) - proxy = proxymaker(space, name, parentfn) - if proxy: - setattr(space, name, proxy) - - prevrepr = repr(space) - space._this_space_repr_ = '%s(%s)' % (proxyname, prevrepr) - -# __________________________________________________________________________ _______________________________________________ pypy-commit mailing list [email protected] http://mail.python.org/mailman/listinfo/pypy-commit
