Skip to content

Commit 7163daa

Browse files
author
Alexey Gadzhiev
committed
Fix bytes<->str Python 3 mess
1 parent 89a8607 commit 7163daa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tarantool/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class Greeting:
6262
# Tarantool 1.6.8-132-g82f5424 (Lua console)
6363
result = Greeting()
6464
try:
65-
(product, _, tail) = str(greeting_buf)[0:63].partition(' ')
65+
(product, _, tail) = greeting_buf[0:63].decode().partition(' ')
6666
if product.startswith("Tarantool "):
6767
raise Exception()
6868
# Parse a version string - 1.6.6-83-gc6b2129 or 1.6.7

0 commit comments

Comments
 (0)