PEP 8, deindent some of the text. (GH-458)
This commit is contained in:
parent
1f6bc120cc
commit
2c212e0086
30
pep-0008.txt
30
pep-0008.txt
|
@ -650,13 +650,13 @@ making a tuple of one element (and in Python 2 they have semantics for
|
||||||
the ``print`` statement). For clarity, it is recommended to surround
|
the ``print`` statement). For clarity, it is recommended to surround
|
||||||
the latter in (technically redundant) parentheses.
|
the latter in (technically redundant) parentheses.
|
||||||
|
|
||||||
Yes::
|
Yes::
|
||||||
|
|
||||||
FILES = ('setup.cfg',)
|
FILES = ('setup.cfg',)
|
||||||
|
|
||||||
OK, but confusing::
|
OK, but confusing::
|
||||||
|
|
||||||
FILES = 'setup.cfg',
|
FILES = 'setup.cfg',
|
||||||
|
|
||||||
When trailing commas are redundant, they are often helpful when a
|
When trailing commas are redundant, they are often helpful when a
|
||||||
version control system is used, when a list of values, arguments or
|
version control system is used, when a list of values, arguments or
|
||||||
|
@ -667,20 +667,20 @@ However it does not make sense to have a trailing comma on the same
|
||||||
line as the closing delimiter (except in the above case of singleton
|
line as the closing delimiter (except in the above case of singleton
|
||||||
tuples).
|
tuples).
|
||||||
|
|
||||||
Yes::
|
Yes::
|
||||||
|
|
||||||
FILES = [
|
FILES = [
|
||||||
'setup.cfg',
|
'setup.cfg',
|
||||||
'tox.ini',
|
'tox.ini',
|
||||||
]
|
]
|
||||||
initialize(FILES,
|
initialize(FILES,
|
||||||
error=True,
|
error=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
No::
|
No::
|
||||||
|
|
||||||
FILES = ['setup.cfg', 'tox.ini',]
|
FILES = ['setup.cfg', 'tox.ini',]
|
||||||
initialize(FILES, error=True,)
|
initialize(FILES, error=True,)
|
||||||
|
|
||||||
|
|
||||||
Comments
|
Comments
|
||||||
|
|
Loading…
Reference in New Issue