mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
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.
This commit is contained in:
parent
ad1a25f499
commit
34fd4c2019
26 changed files with 38 additions and 40 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue