summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-01-01 20:32:42 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-01-01 20:32:42 (GMT)
commiteb6aa5c52597a1b7d67197ff094f7548728393f0 (patch)
treed83b71afa1a2f9b473c1a22cdb638553aa548867
parent7a7a535e232be3209a67e41018651c7d385cac8f (diff)
parent8c126d7abd67fbb88a58d0efbdad573fc6043e76 (diff)
downloadcpython-eb6aa5c52597a1b7d67197ff094f7548728393f0.zip
cpython-eb6aa5c52597a1b7d67197ff094f7548728393f0.tar.gz
cpython-eb6aa5c52597a1b7d67197ff094f7548728393f0.tar.bz2
Issue #16819: IDLE method completion now correctly works for bytes 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 38a19f2..4af4b08 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 efd4343..9b22629 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -124,6 +124,8 @@ Core and Builtins
Library
-------
+- Issue #16819: IDLE method completion now correctly works for bytes literals.
+
- Issue #9586: Redefine SEM_FAILED on MacOSX to keep compiler happy.
- Issue 10527: make multiprocessing use poll() instead of select() if available.