mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 23:48:40 +00:00
Fix isort and flake8 tests
This commit is contained in:
parent
c9d4cd2e14
commit
5a6ca707e0
2 changed files with 2 additions and 2 deletions
|
@ -203,7 +203,7 @@ def download_file(url, filename, callback=None, headers=None, force_filename=Fal
|
||||||
"""
|
"""
|
||||||
A custom context factory to add a server name for TLS connections.
|
A custom context factory to add a server name for TLS connections.
|
||||||
"""
|
"""
|
||||||
def getContext(self, hostname=None, port=None):
|
def getContext(self, hostname=None, port=None): # NOQA
|
||||||
ctx = ssl.ClientContextFactory.getContext(self)
|
ctx = ssl.ClientContextFactory.getContext(self)
|
||||||
ClientTLSOptions(host, ctx)
|
ClientTLSOptions(host, ctx)
|
||||||
return ctx
|
return ctx
|
||||||
|
|
|
@ -11,10 +11,10 @@ import hashlib
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
from socket import gethostbyname
|
||||||
|
|
||||||
import gtk
|
import gtk
|
||||||
from twisted.internet import reactor
|
from twisted.internet import reactor
|
||||||
from socket import gethostbyname
|
|
||||||
|
|
||||||
import deluge.component as component
|
import deluge.component as component
|
||||||
from deluge.common import resource_filename
|
from deluge.common import resource_filename
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue