Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ac2534 commit ca69f02Copy full SHA for ca69f02
1 file changed
Lib/asynchat.py
@@ -101,11 +101,11 @@ def handle_read (self):
101
while self.ac_in_buffer:
102
lb = len(self.ac_in_buffer)
103
terminator = self.get_terminator()
104
- if terminator is None or terminator == '':
+ if not terminator:
105
# no terminator, collect it all
106
self.collect_incoming_data (self.ac_in_buffer)
107
self.ac_in_buffer = ''
108
- elif isinstance(terminator, int):
+ elif isinstance(terminator, int) or isinstance(terminator, long):
109
# numeric terminator
110
n = terminator
111
if lb < n:
0 commit comments