Skip to content

Commit 7b09214

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 <alexander.turenko@tarantool.org>
1 parent f737c80 commit 7b09214

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tarantool_connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def opt_reconnect(self):
146146
"""
147147
try:
148148
if not self.is_connected or self.socket.recv(
149-
1, socket.MSG_DONTWAIT | socket.MSG_PEEK) == '':
149+
1, socket.MSG_DONTWAIT | socket.MSG_PEEK) == b'':
150150
self.reconnect()
151151
except socket.error as e:
152152
if e.errno == errno.EAGAIN:

0 commit comments

Comments
 (0)