[Python-checkins] cpython (2.7): Backport of Issue #14409 to 2.7

andrew.svetlov python-checkins at python.org
Thu Mar 29 18:55:09 CEST 2012


http://hg.python.org/cpython/rev/87ada87057a2
changeset:   75986:87ada87057a2
branch:      2.7
parent:      75979:c40e5120a9b1
user:        Andrew Svetlov <andrew.svetlov at gmail.com>
date:        Thu Mar 29 19:54:58 2012 +0300
summary:
  Backport of Issue #14409 to 2.7

IDLE doesn't not execute commands from shell with default keybinding
for <Return>.
Patch by Roger Serwy.

files:
  Lib/idlelib/NEWS.txt         |  3 +++
  Lib/idlelib/configHandler.py |  2 +-
  Misc/NEWS                    |  3 +++
  3 files changed, 7 insertions(+), 1 deletions(-)


diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt
--- a/Lib/idlelib/NEWS.txt
+++ b/Lib/idlelib/NEWS.txt
@@ -1,6 +1,9 @@
 What's New in IDLE 2.7.3?
 =======================
 
+- Issue #14409: IDLE doesn't not execute commands from shell,
+  error with default keybinding for Return. (Patch by Roger Serwy)
+
 - Issue #3573: IDLE hangs when passing invalid command line args
   (directory(ies) instead of file(s)).
 
diff --git a/Lib/idlelib/configHandler.py b/Lib/idlelib/configHandler.py
--- a/Lib/idlelib/configHandler.py
+++ b/Lib/idlelib/configHandler.py
@@ -595,7 +595,7 @@
             '<<replace>>': ['<Control-h>'],
             '<<goto-line>>': ['<Alt-g>'],
             '<<smart-backspace>>': ['<Key-BackSpace>'],
-            '<<newline-and-indent>>': ['<Key-Return> <Key-KP_Enter>'],
+            '<<newline-and-indent>>': ['<Key-Return>', '<Key-KP_Enter>'],
             '<<smart-indent>>': ['<Key-Tab>'],
             '<<indent-region>>': ['<Control-Key-bracketright>'],
             '<<dedent-region>>': ['<Control-Key-bracketleft>'],
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -35,6 +35,9 @@
 Library
 -------
 
+- Issue #14409: IDLE doesn't not execute commands from shell,
+  error with default keybinding for Return. (Patch by Roger Serwy)
+
 - Issue #10340: asyncore - properly handle EINVAL in dispatcher constructor on
   OSX; avoid to call handle_connect in case of a disconnected socket which
   was not meant to connect.

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list