Skip to content

Commit

Permalink
Fix typo in 'ws4y.websocket'
Browse files Browse the repository at this point in the history
  • Loading branch information
jodal committed Apr 24, 2013
1 parent b105a68 commit a7781e7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ws4py/server/geventserver.py
Expand Up @@ -54,7 +54,7 @@ def run_application(self):
self.socket = None
self.rfile.close()

ws = self.environ.pop('ws4y.websocket')
ws = self.environ.pop('ws4py.websocket')
if ws:
self.server.link_websocket_to_server(ws)
else:
Expand Down
2 changes: 1 addition & 1 deletion ws4py/server/wsgirefserver.py
Expand Up @@ -64,7 +64,7 @@ def finish_response(self):
ws = None
if self.environ:
self.environ.pop('ws4py.socket', None)
ws = self.environ.pop('ws4y.websocket', None)
ws = self.environ.pop('ws4py.websocket', None)

try:
SimpleHandler.finish_response(self)
Expand Down
6 changes: 3 additions & 3 deletions ws4py/server/wsgiutils.py
Expand Up @@ -69,7 +69,7 @@ def __init__(self, protocols=None, extensions=None, handler_cls=WebSocket):
If the upgrade validates, the `handler_cls` class
is instanciated and stored inside the WSGI `environ`
under the `'ws4y.websocket'` key to make it
under the `'ws4py.websocket'` key to make it
available to the WSGI handler.
"""
self.protocols = protocols
Expand All @@ -83,11 +83,11 @@ def make_websocket(self, sock, protocols, extensions, environ):
the `environ` and `sock`.
Stores then the instance in the `environ` dict
under the `'ws4y.websocket'` key.
under the `'ws4py.websocket'` key.
"""
websocket = self.handler_cls(sock, protocols, extensions,
environ.copy())
environ['ws4y.websocket'] = websocket
environ['ws4py.websocket'] = websocket
return websocket

def __call__(self, environ, start_response):
Expand Down

0 comments on commit a7781e7

Please sign in to comment.