[Python-checkins] cpython (3.2): Issue #14937: Fix typo. Patch by Roger Serwy.

martin.v.loewis python-checkins at python.org
Thu Jun 14 15:49:08 CEST 2012


http://hg.python.org/cpython/rev/62030ebb2b01
changeset:   77424:62030ebb2b01
branch:      3.2
parent:      77421:e616985284cd
user:        Martin v. Löwis <martin at v.loewis.de>
date:        Thu Jun 14 15:37:21 2012 +0200
summary:
  Issue #14937: Fix typo. Patch by Roger Serwy.

files:
  Lib/idlelib/AutoComplete.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/idlelib/AutoComplete.py b/Lib/idlelib/AutoComplete.py
--- a/Lib/idlelib/AutoComplete.py
+++ b/Lib/idlelib/AutoComplete.py
@@ -143,7 +143,7 @@
         elif hp.is_in_code() and (not mode or mode==COMPLETE_ATTRIBUTES):
             self._remove_autocomplete_window()
             mode = COMPLETE_ATTRIBUTES
-            while i and curline[i-1] in ID_CHARS or ord(curline[i-1]) > 127:
+            while i and (curline[i-1] in ID_CHARS or ord(curline[i-1]) > 127):
                 i -= 1
             comp_start = curline[i:j]
             if i and curline[i-1] == '.':

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


More information about the Python-checkins mailing list