Fixed linting errors

This commit is contained in:
Jonas Lidén 2018-02-06 08:34:10 +01:00
parent 89e2770fde
commit 74e750d858
2 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ class Server(object):
"""
if hasattr(port, "getHost"):
host = port.getHost()
if hasattr(host, 'host') and hasattr(host, 'port'):
if hasattr(host, "host") and hasattr(host, "port"):
self.listening_addresses.append((host.host, host.port))
def listen_error(self, failure):

View File

@ -1,3 +1,4 @@
import errno
import random
import socket
import struct
@ -6,7 +7,6 @@ import time
import unittest
from http.client import HTTPConnection
from urllib import parse
import errno
from daphne.test_application import TestApplication