mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 22:23:25 +02:00
Use a str type instead of unicode when searching for the opening '[' in the network packet. Using unicode seems to work, but it really is a byte.
This commit is contained in:
parent
324ae47a37
commit
49cb868bb3
1 changed files with 1 additions and 1 deletions
|
|
@ -291,7 +291,7 @@ def _json_encode(self, op, arg):
|
|||
def _read_string_from_net(self):
|
||||
data = bytes(0)
|
||||
while True:
|
||||
dex = data.find('[')
|
||||
dex = data.find(b'[')
|
||||
if dex >= 0:
|
||||
break
|
||||
# recv seems to return a pointer into some internal buffer.
|
||||
|
|
|
|||
Loading…
Reference in a new issue