Fix isort and flake8 tests

This commit is contained in:
Calum Lind 2015-09-25 18:16:29 +01:00
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. 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

View file

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