Skip to content

Commit 5252cb9

Browse files
Vasily Zakharovauvipy
authored andcommitted
Renamed process() bytes argument to data to avoid collision with bytes built-in type
1 parent cb60792 commit 5252cb9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ws4py/websocket.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ def terminate(self):
440440
self.stream = None
441441
self.environ = None
442442

443-
def process(self, bytes):
443+
def process(self, data):
444444
""" Takes some bytes and process them through the
445445
internal stream's parser. If a message of any kind is
446446
found, performs one of these actions:
@@ -456,10 +456,10 @@ def process(self, bytes):
456456
"""
457457
s = self.stream
458458

459-
if not bytes and self.reading_buffer_size > 0:
459+
if not data and self.reading_buffer_size > 0:
460460
return False
461461

462-
self.reading_buffer_size = s.parser.send(bytes) or DEFAULT_READING_SIZE
462+
self.reading_buffer_size = s.parser.send(data) or DEFAULT_READING_SIZE
463463

464464
if s.closing is not None:
465465
logger.debug("Closing message received (%d): %s" % (s.closing.code, s.closing.reason.decode() if isinstance(s.closing.reason, bytes) else s.closing.reason))

0 commit comments

Comments
 (0)