Commits

Philip Jenvey committed 8207e13

apply workaround from 2.7

  • Participants
  • Parent commits 4d0ba92
  • Branches py3k

Comments (0)

Files changed (1)

File lib-python/3.2/trace.py

             if len(funcs) == 1:
                 dicts = [d for d in gc.get_referrers(funcs[0])
                              if isinstance(d, dict)]
+                if len(dicts) == 0:
+                    # PyPy may store functions directly on the class
+                    # (more exactly: the container is not a Python object)
+                    dicts = funcs
                 if len(dicts) == 1:
                     classes = [c for c in gc.get_referrers(dicts[0])
                                    if hasattr(c, "__bases__")]