summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-01-01 20:33:19 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-01-01 20:33:19 (GMT)
commita97274cbcfafda76726193958bbb1aa8b22bfb07 (patch)
tree5bd1f1edc5cff30ec9be0a7c3145f4b5d800f036 /Lib/idlelib
parent567ab22f7bb7929fa739901e7234496af55c9559 (diff)
parenteb6aa5c52597a1b7d67197ff094f7548728393f0 (diff)
downloadcpython-a97274cbcfafda76726193958bbb1aa8b22bfb07.zip
cpython-a97274cbcfafda76726193958bbb1aa8b22bfb07.tar.gz
cpython-a97274cbcfafda76726193958bbb1aa8b22bfb07.tar.bz2
Issue #16819: IDLE method completion now correctly works for bytes literals.
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/HyperParser.py5
1 files changed, 5 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: