File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
22# pylint: disable=C0301,W0105,W0401,W0614
33
4- import six
4+ import sys
55
66#
77IPROTO_CODE = 0x00
8787# Default delay between attempts to reconnect (seconds)
8888RECONNECT_DELAY = 0.1
8989
90- if six . PY2 :
90+ if sys . version_info . major == 2 :
9191 ENCODING_DEFAULT = None
9292else :
9393 ENCODING_DEFAULT = "utf-8"
Original file line number Diff line number Diff line change 55'''
66
77import six
8+ import sys
89import msgpack
910import hashlib
1011
@@ -123,7 +124,7 @@ def sha1(values):
123124 return sha .digest ()
124125
125126 def strxor (rhs , lhs ):
126- if six . PY2 :
127+ if sys . version_info . major == 2 :
127128 return "" .join (chr (ord (x ) ^ ord (y )) for x , y in zip (rhs , lhs ))
128129
129130 return bytes ([x ^ y for x , y in zip (rhs , lhs )])
You can’t perform that action at this time.
0 commit comments