We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9d62b2 commit 3e1f210Copy full SHA for 3e1f210
src/tarantool/response.py
@@ -25,7 +25,7 @@ def __new__(cls, value):
25
if isinstance(value, unicode):
26
return super(field, cls).__new__(cls, value.encode("utf-8", "replace"))
27
28
- if sys.version_info.major < 3 and isinstance(value, str):
+ if sys.version_info[0] < 3 and isinstance(value, str):
29
return super(field, cls).__new__(cls, value)
30
31
if isinstance(value, (bytearray, bytes)):
@@ -57,7 +57,7 @@ def __int__(self):
57
raise ValueError("Unable to cast field to int: length must be 4 or 8 bytes, field length is %d"%len(self))
58
59
60
- if sys.version_info.major > 2:
+ if sys.version_info[0] > 2:
61
def __str__(self):
62
'''\
63
Cast filed to str
0 commit comments