зеркало из https://github.com/mozilla/MozDef.git
Resolve E301 expected 1 line got 0
This commit is contained in:
Родитель
82be09f217
Коммит
944dde209b
1
.flake8
1
.flake8
|
@ -20,7 +20,6 @@ ignore =
|
|||
E231 # missing whitespace after ','
|
||||
E265 # block comment should start with '# '
|
||||
E266 # too many leading '#' for block comment
|
||||
E301 # expected 1 blank line
|
||||
E302 # expected 2 blank lines, found 1
|
||||
E305 # expected 2 blank lines after class or function definition
|
||||
E402 # module level import not at top of file
|
||||
|
|
|
@ -15,8 +15,10 @@ except ImportError:
|
|||
class UTC(tzinfo):
|
||||
def utcoffset(self, dt):
|
||||
return timedelta(0)
|
||||
|
||||
def tzname(self, dt):
|
||||
return "UTC"
|
||||
|
||||
def dst(self, dt):
|
||||
return timedelta(0)
|
||||
utc = UTC()
|
||||
|
|
Загрузка…
Ссылка в новой задаче