Procházet zdrojové kódy

Some typo bugfixes

Taddeus Kroes před 13 roky
rodič
revize
26c511bd59
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 1 1
      connection.py
  2. 1 1
      websocket.py

+ 1 - 1
connection.py

@@ -98,7 +98,7 @@ class Connection(object):
         """
         while True:
             try:
-                self.onmessage(self, self.receive())
+                self.onmessage(self.receive())
 
                 if self.received_close_params is not None:
                     self.handle_close(*self.received_close_params)

+ 1 - 1
websocket.py

@@ -60,7 +60,7 @@ class websocket(object):
         client handshake). Note that the handshake may raise an InvalidRequest
         exception.
         """
-        client, address = socket.socket.accept(self)
+        client, address = self.sock.accept()
         client = websocket(client)
         client.server_handshake()
         return client, address