summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/idlelib/run.py')
-rw-r--r--Lib/idlelib/run.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py
index 74c1b89..15f4472 100644
--- a/Lib/idlelib/run.py
+++ b/Lib/idlelib/run.py
@@ -40,6 +40,7 @@ else:
s += " %s\n" % line
s += "%s: %s\n" % (category.__name__, message)
return s
+ warnings.formatwarning = idle_formatwarning_subproc
tcl = tkinter.Tcl()
@@ -81,9 +82,6 @@ def main(del_exitfunc=False):
global exit_now
global quitting
global no_exitfunc
-
- warnings.formatwarning = idle_formatwarning_subproc
-
no_exitfunc = del_exitfunc
#time.sleep(15) # test subprocess not responding
try: