From: Serhiy Storchaka Date: Tue, 1 Jan 2013 20:32:42 +0000 (+0200) Subject: Issue #16819: IDLE method completion now correctly works for bytes literals. X-Git-Tag: v3.3.1rc1~444 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb6aa5c52597a1b7d67197ff094f7548728393f0;p=python Issue #16819: IDLE method completion now correctly works for bytes literals. --- eb6aa5c52597a1b7d67197ff094f7548728393f0 diff --cc Lib/idlelib/HyperParser.py index 38a19f2189,4414de72bc..4af4b085c7 --- a/Lib/idlelib/HyperParser.py +++ b/Lib/idlelib/HyperParser.py @@@ -232,6 -232,11 +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": ++ while pos > 0 and rawtext[pos - 1] in "rRbBuU": + pos -= 1 + last_identifier_pos = pos break else: