Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r61830:dabc1457e3cc
Date: 2013-02-26 10:43 -0800
http://bitbucket.org/pypy/pypy/changeset/dabc1457e3cc/
Log: simplify
diff --git a/pypy/interpreter/app_main.py b/pypy/interpreter/app_main.py
--- a/pypy/interpreter/app_main.py
+++ b/pypy/interpreter/app_main.py
@@ -545,11 +545,7 @@
# handle the "-c" command
# Put '' on sys.path
sys.path.insert(0, '')
-
- @hidden_applevel
- def run_it():
- exec_(run_command, mainmodule.__dict__)
- success = run_toplevel(run_it)
+ success = run_toplevel(exec_, run_command, mainmodule.__dict__)
elif run_module != 0:
# handle the "-m" command
# '' on sys.path is required also here
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit