We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 948d156 commit c9898eaCopy full SHA for c9898ea
pyrepl/simple_interact.py
@@ -35,8 +35,8 @@ def check(): # returns False if there is a problem initializing the state
35
36
def run_multiline_interactive_console(mainmodule=None):
37
import code
38
- if mainmodule is None:
39
- import __main__ as mainmodule
+ import __main__
+ mainmodule = mainmodule or __main__
40
console = code.InteractiveConsole(mainmodule.__dict__)
41
42
def more_lines(unicodetext):
0 commit comments