Formatting fixes to new PEP8 text

This commit is contained in:
Chris Angelico 2015-01-03 13:27:29 +11:00
parent 44c193d765
commit f76f34e7f4
1 changed files with 11 additions and 7 deletions

View File

@ -518,14 +518,18 @@ Other Recommendations
Additionally, use a single space after the ``:``, as well as a single space
on either side of the ``->`` sign representing an annotated return value.
Yes: def munge(input: AnyStr):
Yes: def munge(sep: AnyStr = None):
Yes: def munge() -> AnyStr:
Yes: def munge(input: AnyStr, sep: AnyStr = None, limit=1000):
Yes::
No: def munge(input: AnyStr=None):
No: def munge(input:AnyStr):
No: def munge(input: AnyStr)->PosInt:
def munge(input: AnyStr):
def munge(sep: AnyStr = None):
def munge() -> AnyStr:
def munge(input: AnyStr, sep: AnyStr = None, limit=1000):
No::
def munge(input: AnyStr=None):
def munge(input:AnyStr):
def munge(input: AnyStr)->PosInt:
- Compound statements (multiple statements on the same line) are
generally discouraged.