diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-11-05 15:13:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-05 15:13:50 (GMT) |
commit | 7054e5c80b6e98cd44e22d1bc2d7f0a94343089d (patch) | |
tree | 23963b48340074d2d96383600f420d6421e4e0d1 /Lib/idlelib/hyperparser.py | |
parent | f574ce79729ecb01f1f5b3e1a34c8aa7480b79e8 (diff) | |
download | cpython-7054e5c80b6e98cd44e22d1bc2d7f0a94343089d.zip cpython-7054e5c80b6e98cd44e22d1bc2d7f0a94343089d.tar.gz cpython-7054e5c80b6e98cd44e22d1bc2d7f0a94343089d.tar.bz2 |
[3.6] bpo-35133: Fix mistakes when concatenate string literals on different lines. (GH-10284) (GH-10335)
Two kind of mistakes:
1. Missed space. After concatenating there is no space between words.
2. Missed comma. Causes unintentional concatenating in a list of strings..
(cherry picked from commit 34fd4c20198dea6ab2fe8dc6d32d744d9bde868d)
Diffstat (limited to 'Lib/idlelib/hyperparser.py')
-rw-r--r-- | Lib/idlelib/hyperparser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/hyperparser.py b/Lib/idlelib/hyperparser.py index 7581fe27..7e7e0ae 100644 --- a/Lib/idlelib/hyperparser.py +++ b/Lib/idlelib/hyperparser.py @@ -224,7 +224,7 @@ class HyperParser: given index, which is empty if there is no real one. """ if not self.is_in_code(): - raise ValueError("get_expression should only be called" + raise ValueError("get_expression should only be called " "if index is inside a code.") rawtext = self.rawtext |