Commit 8c126d7a authored by Serhiy Storchaka's avatar Serhiy Storchaka

Issue #16819: IDLE method completion now correctly works for bytes literals.

parent 3108fb5b
......@@ -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 "rRbB":
pos -= 1
last_identifier_pos = pos
break
else:
......
......@@ -189,6 +189,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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment