BufferReader won't return bytes
This commit is contained in:
parent
6db80ec51a
commit
223c2d1709
@ -106,7 +106,7 @@ class Chain:
|
|||||||
data = self.reader.read()
|
data = self.reader.read()
|
||||||
except ValueError:
|
except ValueError:
|
||||||
pass
|
pass
|
||||||
if data is None or (isinstance(data, bytes) and len(data) == 0):
|
if data is None:
|
||||||
run = False
|
run = False
|
||||||
else:
|
else:
|
||||||
write(data)
|
write(data)
|
||||||
|
Loading…
Reference in New Issue
Block a user