diff Lib/idlelib/AutoComplete.py @ 77424:62030ebb2b01 3.2

Issue #14937: Fix typo. Patch by Roger Serwy.
author Martin v. Löwis <martin@v.loewis.de>
date Thu, 14 Jun 2012 15:37:21 +0200
parents 21a475aee5e0
children 82fc6ff7aa3e
line wrap: on
line diff
--- a/Lib/idlelib/AutoComplete.py	Thu Jun 14 00:37:09 2012 +0200
+++ b/Lib/idlelib/AutoComplete.py	Thu Jun 14 15:37:21 2012 +0200
@@ -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] == '.':