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

This commit is contained in:
Serhiy Storchaka 2013-01-01 22:25:59 +02:00
parent 3108fb5b45
commit 8c126d7abd
2 changed files with 7 additions and 0 deletions

View 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 "rRbB":
pos -= 1
last_identifier_pos = pos
break
else: