futurize stage1 vui
This commit is contained in:
+19
-18
@@ -1,18 +1,19 @@
|
||||
import sys, traceback
|
||||
|
||||
# To enable "hot" reloading in the IDLE shell.
|
||||
for name in 'core main display viewer text_viewer stack_viewer persist_task'.split():
|
||||
try:
|
||||
del sys.modules[name]
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
import main
|
||||
|
||||
try:
|
||||
A = A # (screen, clock, pt), three things that we DON'T want to recreate
|
||||
# each time we restart main().
|
||||
except NameError:
|
||||
A = main.init()
|
||||
|
||||
d = main.main(*A)
|
||||
from __future__ import absolute_import
|
||||
import sys, traceback
|
||||
|
||||
# To enable "hot" reloading in the IDLE shell.
|
||||
for name in 'core main display viewer text_viewer stack_viewer persist_task'.split():
|
||||
try:
|
||||
del sys.modules[name]
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
from . import main
|
||||
|
||||
try:
|
||||
A = A # (screen, clock, pt), three things that we DON'T want to recreate
|
||||
# each time we restart main().
|
||||
except NameError:
|
||||
A = main.init()
|
||||
|
||||
d = main.main(*A)
|
||||
|
||||
Reference in New Issue
Block a user