1. Pypy
  2. Untitled project
  3. pypy

Commits

Benjamin Peterson  committed 811d838

this hasn't been problem for a several python versions

  • Participants
  • Parent commits 37194ae
  • Branches default

Comments (0)

Files changed (1)

File pypy/objspace/flow/operation.py

View file
 
 def new_style_type(x):
     """Simulate a situation where every class is new-style"""
-    t = getattr(x, '__class__', type(x))
-    if t is types.ClassType:   # guess who's here?  exception classes...
-        t = type
-    return t
+    return getattr(x, '__class__', type(x))
 
 def do_int(x):
     return x.__int__()