Source

pypy / lib_pypy / _pypy_interact.py

Diff from to

lib_pypy/_pypy_interact.py

 if __name__ == '__main__':    # for testing
     import os
     if os.getenv('PYTHONSTARTUP'):
-        execfile(os.getenv('PYTHONSTARTUP'))
+        exec(compile(open(os.getenv('PYTHONSTARTUP')).read(), os.getenv('PYTHONSTARTUP'), 'exec'))
     interactive_console()