commit | 14224420d0ddc8f6d21d3df39ebe7184aa7a70e7 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Tue Jan 01 22:27:45 2013 +0200 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Tue Jan 01 22:27:45 2013 +0200 |
tree | 9f85fcdf16bdaa00ee5755233d1f8e66b82ba788 | |
parent | 93b0b25fe09a07c80b14fba7bbf219a25bc83d9e [diff] [blame] |
Issue #16819: IDLE method completion now correctly works for unicode literals.
diff --git a/Lib/idlelib/HyperParser.py b/Lib/idlelib/HyperParser.py index 38a19f2..4af4b08 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 "rRbBuU": + pos -= 1 + last_identifier_pos = pos break else: