Explorar o código

Fixed broken WebSocket constructor

Taddeus Kroes %!s(int64=13) %!d(string=hai) anos
pai
achega
d8fd549c77
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      websocket.py

+ 1 - 1
websocket.py

@@ -15,7 +15,7 @@ WS_VERSION = '13'
 
 class WebSocket(object):
     def __init__(self, sock, address, encoding=None):
-        super(WebSocket, self).__init__(sock)
+        self.sock = sock
         self.address = address
         self.encoding = encoding