Commits

Anonymous committed 99aae0e

One small change

  • Participants
  • Parent commits eef3697

Comments (0)

Files changed (1)

File pypy/module/builtin.py

         w_character = space.newstring([w_ascii])
         return w_character
 
-# redirecting certain things to the real builtins
-_b = __builtins__
+import __builtin__ as _b
 
 def compile(*args, **kwargs):
-    import types
-    if type(_b) == types.ModuleType:
-       fun = _b.compile
-    else:
-       fun = _b['compile']
-    c = fun(*args, **kwargs)
+    c = _b.compile(*args, **kwargs)
     res = PyCode()
     res._from_code(c)
     return res
 
-print compile("def bla(): return None", "?", "exec")
+compile.__doc__ = _b.compile.__doc__