mirror of https://github.com/python/cpython
#6698: merge with 3.3.
This commit is contained in:
commit
af504ca017
|
@ -1413,7 +1413,7 @@ def main():
|
|||
global flist, root, use_subprocess
|
||||
|
||||
use_subprocess = True
|
||||
enable_shell = True
|
||||
enable_shell = False
|
||||
enable_edit = False
|
||||
debug = False
|
||||
cmd = None
|
||||
|
@ -1434,7 +1434,6 @@ def main():
|
|||
enable_shell = True
|
||||
if o == '-e':
|
||||
enable_edit = True
|
||||
enable_shell = False
|
||||
if o == '-h':
|
||||
sys.stdout.write(usage_msg)
|
||||
sys.exit()
|
||||
|
@ -1487,6 +1486,7 @@ def main():
|
|||
edit_start = idleConf.GetOption('main', 'General',
|
||||
'editor-on-startup', type='bool')
|
||||
enable_edit = enable_edit or edit_start
|
||||
enable_shell = enable_shell or not enable_edit
|
||||
# start editor and/or shell windows:
|
||||
root = Tk(className="Idle")
|
||||
|
||||
|
|
Loading…
Reference in New Issue