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:
parent
be2c8bd789
commit
448c06d125
142 changed files with 249 additions and 25 deletions
|
|
@ -36,6 +36,7 @@ def to_bytes(s):
|
|||
else:
|
||||
return s
|
||||
|
||||
|
||||
class FileField(object):
|
||||
def __init__(self, filename, contents=None, headers=None):
|
||||
self.filename = to_bytes(os.path.basename(filename))
|
||||
|
|
|
|||
|
|
@ -74,4 +74,3 @@ class UnseeModule(Module, BasePasteModule):
|
|||
d = self.browser.post_image(paste.title, paste.contents.decode('base64'), max_code)
|
||||
paste.id = d['id']
|
||||
return paste
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue