Skip to content

Commit 0a40bc4

Browse files
ligurioTotktonada
andcommitted
python3: use string byte literal
Fix Tarantool connection liveness and box-py/call.test.py test. Part of #20 Co-authored-by: Alexander Turenko <[email protected]>
1 parent 3a55470 commit 0a40bc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tarantool_connection.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def opt_reconnect(self):
148148
"""
149149
try:
150150
if not self.is_connected or self.socket.recv(
151-
1, socket.MSG_DONTWAIT | socket.MSG_PEEK) == '':
151+
1, socket.MSG_DONTWAIT | socket.MSG_PEEK) == b'':
152152
self.reconnect()
153153
except socket.error as e:
154154
if e.errno == errno.EAGAIN:

0 commit comments

Comments
 (0)