]> granicus.if.org Git - python/commitdiff
Issue #14937: Fix typo. Patch by Roger Serwy.
authorMartin v. Löwis <martin@v.loewis.de>
Thu, 14 Jun 2012 13:37:21 +0000 (15:37 +0200)
committerMartin v. Löwis <martin@v.loewis.de>
Thu, 14 Jun 2012 13:37:21 +0000 (15:37 +0200)
Lib/idlelib/AutoComplete.py

index 6b5391ba790994d787d73d046cd73e715593e751..e4c1aff3dc9450e77a8837efb49f544879cbc1cc 100644 (file)
@@ -143,7 +143,7 @@ class AutoComplete:
         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] == '.':