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

index 38a19f2189caff7d24836b4c4f2d5575467c69b4..4af4b085c7c0c537c5a22aa74a917cc3a4168a61 100644 (file)
@@ -232,6 +232,11 @@ class HyperParser:
                     pass
                 else:
                     # We can't continue after other types of brackets
+                    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:
index ff91c7157efd07c46e20a6afb56668aa727a26d9..0111cb43fc1e6a99cad8dffd4024e8c5c4ce995f 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -175,6 +175,8 @@ Core and Builtins
 Library
 -------
 
+- Issue #16819: IDLE method completion now correctly works for unicode literals.
+
 - Issue #9586: Redefine SEM_FAILED on MacOSX to keep compiler happy.
 
 - Issue 10527: make multiprocessing use poll() instead of select() if available.