Commits

Alex Gaynor committed 6e9e718 Merge

merged upstream

  • Participants
  • Parent commits da7a015, e0c3334

Comments (0)

Files changed (1)

File pypy/objspace/flow/operation.py

 
 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__()