mirror of
https://github.com/django/daphne.git
synced 2025-04-21 01:02:06 +03:00
Fixed linting errors
This commit is contained in:
parent
89e2770fde
commit
74e750d858
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user