Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit af504ca

Browse files
committed
#6698: merge with 3.3.
2 parents 05bdd85 + c35151c commit af504ca

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Lib/idlelib/PyShell.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1413,7 +1413,7 @@ def main():
14131413
global flist, root, use_subprocess
14141414

14151415
use_subprocess = True
1416-
enable_shell = True
1416+
enable_shell = False
14171417
enable_edit = False
14181418
debug = False
14191419
cmd = None
@@ -1434,7 +1434,6 @@ def main():
14341434
enable_shell = True
14351435
if o == '-e':
14361436
enable_edit = True
1437-
enable_shell = False
14381437
if o == '-h':
14391438
sys.stdout.write(usage_msg)
14401439
sys.exit()
@@ -1487,6 +1486,7 @@ def main():
14871486
edit_start = idleConf.GetOption('main', 'General',
14881487
'editor-on-startup', type='bool')
14891488
enable_edit = enable_edit or edit_start
1489+
enable_shell = enable_shell or not enable_edit
14901490
# start editor and/or shell windows:
14911491
root = Tk(className="Idle")
14921492

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,8 @@ Core and Builtins
297297
Library
298298
-------
299299

300+
- Issue #6698: IDLE now opens just an editor window when configured to do so.
301+
300302
- Issue #8900: Using keyboard shortcuts in IDLE to open a file no longer
301303
raises an exception.
302304

0 commit comments

Comments
 (0)