Author: Ronan Lamy <[email protected]>
Branch: py3.5
Changeset: r91315:94add67df5b3
Date: 2017-05-16 18:51 +0100
http://bitbucket.org/pypy/pypy/changeset/94add67df5b3/

Log:    Call sys.__interactivehook__ (issue #2558)

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
@@ -694,6 +694,8 @@
                             del mainmodule.__file__
                         except (AttributeError, TypeError):
                             pass
+                if hasattr(sys, '__interactivehook__'):
+                    run_toplevel(sys.__interactivehook__)
                 # Then we need a prompt.
                 inspect = True
             else:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to