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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eb6aa5c52597a1b7d67197ff094f7548728393f0;p=thirdparty%2FPython%2Fcpython.git Issue #16819: IDLE method completion now correctly works for bytes literals. --- eb6aa5c52597a1b7d67197ff094f7548728393f0 diff --cc Lib/idlelib/HyperParser.py index 38a19f2189ca,4414de72bc52..4af4b085c7c0 --- 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: