commit | 8c126d7abd67fbb88a58d0efbdad573fc6043e76 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Tue Jan 01 22:25:59 2013 +0200 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Tue Jan 01 22:25:59 2013 +0200 |
tree | 76b27be4ab0c6ecc7ab45e51842ecaa2e0a51375 | |
parent | 3108fb5b45c025c8a29e3ba14a7af15680cd52be [diff] [blame] |
Issue #16819: IDLE method completion now correctly works for bytes literals.
diff --git a/Lib/idlelib/HyperParser.py b/Lib/idlelib/HyperParser.py index 38a19f2..4414de7 100644 --- a/Lib/idlelib/HyperParser.py +++ b/Lib/idlelib/HyperParser.py
@@ -232,6 +232,11 @@ 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: