[WebUI] Fix isort error in auth
This commit is contained in:
parent
20b05ae595
commit
403fdb31a1
|
@ -18,7 +18,6 @@ from twisted.internet.task import LoopingCall
|
||||||
|
|
||||||
from deluge import component
|
from deluge import component
|
||||||
from deluge.common import utf8_encoded
|
from deluge.common import utf8_encoded
|
||||||
from deluge.ui.web.json_api import export, JSONComponent
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -39,7 +38,7 @@ class AuthError(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# Import after as json_api imports the above AuthError and AUTH_LEVEL_DEFAULT
|
# Import after as json_api imports the above AuthError and AUTH_LEVEL_DEFAULT
|
||||||
|
from deluge.ui.web.json_api import export, JSONComponent # isort:skip
|
||||||
|
|
||||||
def make_checksum(session_id):
|
def make_checksum(session_id):
|
||||||
return reduce(lambda x, y: x + y, map(ord, session_id))
|
return reduce(lambda x, y: x + y, map(ord, session_id))
|
||||||
|
|
Loading…
Reference in New Issue