summaryrefslogtreecommitdiff
path: root/Lib/email
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-11-05 06:52:58 -0800
committerGitHub <noreply@github.com>2018-11-05 06:52:58 -0800
commit7beb8c54ede7669a59bb9b912ba0ffd8aa3998c6 (patch)
tree1ee2650cb71b77d7ae8e04c7cae6fd16b3c27cda /Lib/email
parent96fb350bfd2c9b66d7804ae27ea8c4adbfabad5b (diff)
downloadcpython-git-7beb8c54ede7669a59bb9b912ba0ffd8aa3998c6.tar.gz
bpo-35133: Fix mistakes when concatenate string literals on different lines. (GH-10284)
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) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Lib/email')
-rw-r--r--Lib/email/_header_value_parser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/email/_header_value_parser.py b/Lib/email/_header_value_parser.py
index e805a75fbd..416da1a80d 100644
--- a/Lib/email/_header_value_parser.py
+++ b/Lib/email/_header_value_parser.py
@@ -2209,8 +2209,8 @@ def get_section(value):
digits += value[0]
value = value[1:]
if digits[0] == '0' and digits != '0':
- section.defects.append(errors.InvalidHeaderError("section number"
- "has an invalid leading 0"))
+ section.defects.append(errors.InvalidHeaderError(
+ "section number has an invalid leading 0"))
section.number = int(digits)
section.append(ValueTerminal(digits, 'digits'))
return section, value