Skip to content

Commit 1bce57a

Browse files
committed
Use bytearray()
1 parent 4a4da72 commit 1bce57a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: wstan/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from binascii import Error as Base64Error
3030
from collections import deque
3131

32-
__version__ = '0.2.1'
32+
__version__ = '0.3'
3333

3434
# patch asyncio because "async" will become a keyword sooner or later
3535
asyncio.async_ = getattr(asyncio, 'ensure_future', None) or getattr(asyncio, 'async')

Diff for: wstan/autobahn/websocket/protocol.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1496,7 +1496,7 @@ def processData(self):
14961496
else:
14971497
data = self.data
14981498
length = buffered_len
1499-
self.data = b''
1499+
self.data = bytearray()
15001500

15011501
if length > 0:
15021502
# unmask payload

0 commit comments

Comments
 (0)