pep8 blank lines fixes

flake8 --select W391,E302,E301,E304

autopep8 can't fix W391 even though it claims it can.
Fixed using a simple custom script.
This commit is contained in:
Laurent Bachelier 2014-10-10 23:04:08 +02:00
commit 448c06d125
142 changed files with 249 additions and 25 deletions

View file

@ -69,6 +69,7 @@ class NoHistory(object):
"""
We don't want to fill memory with history
"""
def __init__(self):
pass
@ -703,6 +704,7 @@ class DNSTimeoutException(Exception):
cacheDNS = {}
def my_getaddrinfo(*args):
try:
res, timeout = cacheDNS[args]

View file

@ -29,6 +29,7 @@ class Csv(object):
rows contains the raw rows
drows contains the rows with cells indexed by header title
"""
def __init__(self):
self.header = None
self.rows = []

View file

@ -109,6 +109,7 @@ class LxmlHtmlParser(LxmlParser):
Note that it is not available on every systems.
"""
def __init__(self, *args, **kwargs):
self.module = html
@ -122,6 +123,7 @@ class LxmlXmlParser(LxmlParser):
Note that it is not available on every systems.
"""
def __init__(self, *args, **kwargs):
self.module = etree