Fix isort and flake8 tests

This commit is contained in:
Calum Lind 2015-09-25 18:16:29 +01:00
parent c9d4cd2e14
commit 5a6ca707e0
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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