Flake8 fixes (#2549)

* Fix over-indented continuation lines

* Fix under-indented continuation lines

* Fix whitespace around default operator problems

* Limit line lengths

* Fix inconsistent files
This commit is contained in:
Sebastian Rittau
2018-10-24 16:20:53 +02:00
committed by Jelle Zijlstra
parent f362cf47fa
commit 006a79220f
83 changed files with 567 additions and 547 deletions

View File

@@ -173,12 +173,12 @@ class Formatter:
if sys.version_info >= (3,):
def __init__(self, fmt: Optional[str] = ...,
datefmt: Optional[str] =...,
datefmt: Optional[str] = ...,
style: str = ...) -> None: ...
else:
def __init__(self,
fmt: Optional[str] = ...,
datefmt: Optional[str] =...) -> None: ...
datefmt: Optional[str] = ...) -> None: ...
def format(self, record: LogRecord) -> str: ...
def formatTime(self, record: LogRecord, datefmt: str = ...) -> str: ...

View File

@@ -129,7 +129,7 @@ class SysLogHandler(Handler):
LOG_LOCAL6 = ... # type: int
LOG_LOCAL7 = ... # type: int
def __init__(self, address: Union[Tuple[str, int], str] = ...,
facility: int = ..., socktype: _SocketKind = ...) -> None: ...
facility: int = ..., socktype: _SocketKind = ...) -> None: ...
def encodePriority(self, facility: Union[int, str],
priority: Union[int, str]) -> int: ...
def mapPriority(self, levelName: int) -> str: ...
@@ -150,14 +150,14 @@ class SMTPHandler(Handler):
def __init__(self, mailhost: Union[str, Tuple[str, int]], fromaddr: str,
toaddrs: List[str], subject: str,
credentials: Optional[Tuple[str, str]] = ...,
secure: Union[Tuple[str], Tuple[str, str], None] =...,
secure: Union[Tuple[str], Tuple[str, str], None] = ...,
timeout: float = ...) -> None: ...
else:
def __init__(self,
mailhost: Union[str, Tuple[str, int]], fromaddr: str,
toaddrs: List[str], subject: str,
credentials: Optional[Tuple[str, str]] = ...,
secure: Union[Tuple[str], Tuple[str, str], None] =...) -> None: ...
secure: Union[Tuple[str], Tuple[str, str], None] = ...) -> None: ...
def getSubject(self, record: LogRecord) -> str: ...
@@ -167,7 +167,7 @@ class BufferingHandler(Handler):
class MemoryHandler(BufferingHandler):
def __init__(self, capacity: int, flushLevel: int = ...,
target: Optional[Handler] =...) -> None: ...
target: Optional[Handler] = ...) -> None: ...
def setTarget(self, target: Handler) -> None: ...