summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-01-01 22:27:45 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2013-01-01 22:27:45 +0200
commit14224420d0ddc8f6d21d3df39ebe7184aa7a70e7 (patch)
tree9f85fcdf16bdaa00ee5755233d1f8e66b82ba788
parent93b0b25fe09a07c80b14fba7bbf219a25bc83d9e (diff)
downloadcpython-git-14224420d0ddc8f6d21d3df39ebe7184aa7a70e7.tar.gz
Issue #16819: IDLE method completion now correctly works for unicode literals.
-rw-r--r--Lib/idlelib/HyperParser.py5
-rw-r--r--Misc/NEWS2
2 files changed, 7 insertions, 0 deletions
diff --git a/Lib/idlelib/HyperParser.py b/Lib/idlelib/HyperParser.py
index 38a19f2189..4af4b085c7 100644
--- a/Lib/idlelib/HyperParser.py
+++ b/Lib/idlelib/HyperParser.py
@@ -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:
diff --git a/Misc/NEWS b/Misc/NEWS
index ff91c7157e..0111cb43fc 100644
--- 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.