[pypy-svn] pypy default: Remove helper that's no longer used.

alex_gaynor commits-noreply at bitbucket.org
Wed Jan 19 06:20:08 CET 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r40920:59442d2dc478
Date: 2011-01-18 23:19 -0600
http://bitbucket.org/pypy/pypy/changeset/59442d2dc478/

Log:	Remove helper that's no longer used.

diff --git a/pypy/conftest.py b/pypy/conftest.py
--- a/pypy/conftest.py
+++ b/pypy/conftest.py
@@ -294,16 +294,6 @@
     py.test.skip("need translated pypy with: %s, got %s"
                  %(ropts,options))
 
-def getwithoutbinding(x, name):
-    try:
-        return x.__dict__[name]
-    except (AttributeError, KeyError):
-        for cls in getmro(x.__class__):
-            if name in cls.__dict__:
-                return cls.__dict__[name]
-        # uh? not found anywhere, fall back (which might raise AttributeError)
-        return getattr(x, name)
-
 class LazyObjSpaceGetter(object):
     def __get__(self, obj, cls=None):
         space = gettestobjspace()


More information about the Pypy-commit mailing list