]> granicus.if.org Git - python/commitdiff
Issue #16819: IDLE method completion now correctly works for bytes literals.
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 1 Jan 2013 20:32:42 +0000 (22:32 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Tue, 1 Jan 2013 20:32:42 +0000 (22:32 +0200)
1  2 
Lib/idlelib/HyperParser.py
Misc/NEWS

index 38a19f2189caff7d24836b4c4f2d5575467c69b4,4414de72bc5239e82b1bba0dfbae991754a2fc47..4af4b085c7c0c537c5a22aa74a917cc3a4168a61
@@@ -232,6 -232,11 +232,11 @@@ class HyperParser
                      pass
                  else:
                      # We can't continue after other types of brackets
 -                        while pos > 0 and rawtext[pos - 1] in "rRbB":
+                     if rawtext[pos] in "'\"":
+                         # Scan a string prefix
++                        while pos > 0 and rawtext[pos - 1] in "rRbBuU":
+                             pos -= 1
+                         last_identifier_pos = pos
                      break
  
              else:
diff --cc Misc/NEWS
Simple merge