mirror of
https://github.com/django/daphne.git
synced 2025-07-27 07:29:46 +03:00
pep8
This commit is contained in:
parent
46da6b97f8
commit
3a58755140
|
@ -3,8 +3,11 @@ import time
|
|||
import traceback
|
||||
from urllib.parse import unquote
|
||||
|
||||
from autobahn.twisted.websocket import (ConnectionDeny, WebSocketServerFactory,
|
||||
WebSocketServerProtocol)
|
||||
from autobahn.twisted.websocket import (
|
||||
ConnectionDeny,
|
||||
WebSocketServerFactory,
|
||||
WebSocketServerProtocol,
|
||||
)
|
||||
from twisted.internet import defer
|
||||
|
||||
from .utils import parse_x_forwarded_for
|
||||
|
@ -293,7 +296,7 @@ class WebSocketProtocol(WebSocketServerProtocol):
|
|||
return id(self) == id(other)
|
||||
|
||||
def __repr__(self):
|
||||
return "<WebSocketProtocol client=%r path=%r>" % (self.client_addr, self.path)
|
||||
return "" % (self.client_addr, self.path)
|
||||
|
||||
|
||||
class WebSocketFactory(WebSocketServerFactory):
|
||||
|
|
Loading…
Reference in New Issue
Block a user