File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ))
You can’t perform that action at this time.
0 commit comments