Skip to content

Commit c9898ea

Browse files
flip code in run_multiline_interactive_console to be pyflaks safe
1 parent 948d156 commit c9898ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyrepl/simple_interact.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ def check(): # returns False if there is a problem initializing the state
3535

3636
def run_multiline_interactive_console(mainmodule=None):
3737
import code
38-
if mainmodule is None:
39-
import __main__ as mainmodule
38+
import __main__
39+
mainmodule = mainmodule or __main__
4040
console = code.InteractiveConsole(mainmodule.__dict__)
4141

4242
def more_lines(unicodetext):

0 commit comments

Comments
 (0)