From 8c126d7abd67fbb88a58d0efbdad573fc6043e76 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Tue, 1 Jan 2013 22:25:59 +0200 Subject: Issue #16819: IDLE method completion now correctly works for bytes literals. --- Lib/idlelib/HyperParser.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Lib/idlelib/HyperParser.py') diff --git a/Lib/idlelib/HyperParser.py b/Lib/idlelib/HyperParser.py index 38a19f2189..4414de72bc 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 "rRbB": + pos -= 1 + last_identifier_pos = pos break else: -- cgit v1.2.1