mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-27 11:45:44 +00:00
Fix isort and flake8 tests
This commit is contained in:
parent
c9d4cd2e14
commit
5a6ca707e0
@ -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.
|
||||
"""
|
||||
def getContext(self, hostname=None, port=None):
|
||||
def getContext(self, hostname=None, port=None): # NOQA
|
||||
ctx = ssl.ClientContextFactory.getContext(self)
|
||||
ClientTLSOptions(host, ctx)
|
||||
return ctx
|
||||
|
@ -11,10 +11,10 @@ import hashlib
|
||||
import logging
|
||||
import os
|
||||
import time
|
||||
from socket import gethostbyname
|
||||
|
||||
import gtk
|
||||
from twisted.internet import reactor
|
||||
from socket import gethostbyname
|
||||
|
||||
import deluge.component as component
|
||||
from deluge.common import resource_filename
|
||||
|
Loading…
x
Reference in New Issue
Block a user