mirror of
https://github.com/django/daphne.git
synced 2025-07-14 09:52:17 +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"):
|
if hasattr(port, "getHost"):
|
||||||
host = 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))
|
self.listening_addresses.append((host.host, host.port))
|
||||||
|
|
||||||
def listen_error(self, failure):
|
def listen_error(self, failure):
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import errno
|
||||||
import random
|
import random
|
||||||
import socket
|
import socket
|
||||||
import struct
|
import struct
|
||||||
|
@ -6,7 +7,6 @@ import time
|
||||||
import unittest
|
import unittest
|
||||||
from http.client import HTTPConnection
|
from http.client import HTTPConnection
|
||||||
from urllib import parse
|
from urllib import parse
|
||||||
import errno
|
|
||||||
|
|
||||||
from daphne.test_application import TestApplication
|
from daphne.test_application import TestApplication
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user