[Lint] Flake8 cleanup
This commit is contained in:
parent
d4023e7dde
commit
5959a24d4c
|
@ -10,7 +10,6 @@
|
||||||
from __future__ import division, unicode_literals
|
from __future__ import division, unicode_literals
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
from hashlib import sha1 as sha
|
from hashlib import sha1 as sha
|
||||||
|
|
||||||
from deluge.bencode import bencode
|
from deluge.bencode import bencode
|
||||||
|
|
|
@ -28,7 +28,7 @@ class WebUI(WebPluginBase):
|
||||||
get_resource('autoadd.js'),
|
get_resource('autoadd.js'),
|
||||||
get_resource('autoadd_options.js'),
|
get_resource('autoadd_options.js'),
|
||||||
get_resource('main_tab.js', True),
|
get_resource('main_tab.js', True),
|
||||||
get_resource('options_tab.js', True)
|
get_resource('options_tab.js', True),
|
||||||
]
|
]
|
||||||
|
|
||||||
def enable(self):
|
def enable(self):
|
||||||
|
|
|
@ -20,7 +20,7 @@ from twisted.internet import defer
|
||||||
import deluge
|
import deluge
|
||||||
import deluge.component as component
|
import deluge.component as component
|
||||||
import deluge.ui.web.server
|
import deluge.ui.web.server
|
||||||
from deluge.common import get_localhost_auth, utf8_encode_structure, windows_check, PY2
|
from deluge.common import PY2, get_localhost_auth, utf8_encode_structure, windows_check
|
||||||
from deluge.ui import ui_entry
|
from deluge.ui import ui_entry
|
||||||
from deluge.ui.web.server import DelugeWeb
|
from deluge.ui.web.server import DelugeWeb
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,6 @@ from io import BytesIO
|
||||||
|
|
||||||
import twisted.web.client
|
import twisted.web.client
|
||||||
from twisted.internet import defer, reactor
|
from twisted.internet import defer, reactor
|
||||||
from twisted.trial.unittest import SkipTest
|
|
||||||
from twisted.web.client import Agent, FileBodyProducer
|
from twisted.web.client import Agent, FileBodyProducer
|
||||||
from twisted.web.http_headers import Headers
|
from twisted.web.http_headers import Headers
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,7 @@ class TermResizeHandler(object):
|
||||||
# Get the new rows and cols value
|
# Get the new rows and cols value
|
||||||
rows, cols = struct.unpack(
|
rows, cols = struct.unpack(
|
||||||
'hhhh',
|
'hhhh',
|
||||||
ioctl(0, termios.TIOCGWINSZ, b'\000' * 8)
|
ioctl(0, termios.TIOCGWINSZ, b'\000' * 8),
|
||||||
)[0:2]
|
)[0:2]
|
||||||
curses.resizeterm(rows, cols)
|
curses.resizeterm(rows, cols)
|
||||||
return rows, cols
|
return rows, cols
|
||||||
|
|
Loading…
Reference in New Issue