Skip to content

Commit e96c622

Browse files
committed
Merge branch 'development'
2 parents fb4b2ee + b1cc12e commit e96c622

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

releases.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@
2424

2525
0.6.2
2626
- Add API for disconnecting clients
27+
28+
0.6.3
29+
- Remove deprecation warnings

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from distutils.command.install import install
1313

1414

15-
VERSION = '0.6.2'
15+
VERSION = '0.6.3'
1616

1717

1818
def get_tag_version():

websocket_server/websocket_server.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def __init__(self, socket, addr, server):
240240
try:
241241
socket = ssl.wrap_socket(socket, server_side=True, certfile=server.cert, keyfile=server.key)
242242
except: # Not sure which exception it throws if the key/cert isn't found
243-
logger.warn("SSL not available (are the paths {} and {} correct for the key and cert?)".format(server.key, server.cert))
243+
logger.warning("SSL not available (are the paths {} and {} correct for the key and cert?)".format(server.key, server.cert))
244244
StreamRequestHandler.__init__(self, socket, addr, server)
245245

246246
def setup(self):
@@ -281,14 +281,14 @@ def read_next_message(self):
281281
self.keep_alive = 0
282282
return
283283
if not masked:
284-
logger.warn("Client must always be masked.")
284+
logger.warning("Client must always be masked.")
285285
self.keep_alive = 0
286286
return
287287
if opcode == OPCODE_CONTINUATION:
288-
logger.warn("Continuation frames are not supported.")
288+
logger.warning("Continuation frames are not supported.")
289289
return
290290
elif opcode == OPCODE_BINARY:
291-
logger.warn("Binary frames are not supported.")
291+
logger.warning("Binary frames are not supported.")
292292
return
293293
elif opcode == OPCODE_TEXT:
294294
opcode_handler = self.server._message_received_
@@ -297,7 +297,7 @@ def read_next_message(self):
297297
elif opcode == OPCODE_PONG:
298298
opcode_handler = self.server._pong_received_
299299
else:
300-
logger.warn("Unknown opcode %#x." % opcode)
300+
logger.warning("Unknown opcode %#x." % opcode)
301301
self.keep_alive = 0
302302
return
303303

0 commit comments

Comments
 (0)