Source

pypy / lib_pypy / pypy_test / hack___pypy__.py

1
2
3
4
5
6
7
8
9
# here only to make test runs work even if not running on top of PyPy
import sys, new

def builtinify(f):
    return f

pypy = new.module('__pypy__')
pypy.builtinify = builtinify
sys.modules.setdefault('__pypy__', pypy)