mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-25 14:44:10 +00:00
Drop Python 2 support from _cmsgpack (#376)
This commit is contained in:
parent
b458e9a6a2
commit
891f2d8743
9 changed files with 36 additions and 55 deletions
|
|
@ -5,13 +5,12 @@ import struct
|
|||
import warnings
|
||||
|
||||
|
||||
if sys.version_info[0] == 2:
|
||||
PY2 = True
|
||||
PY2 = sys.version_info[0] == 2
|
||||
if PY2:
|
||||
int_types = (int, long)
|
||||
def dict_iteritems(d):
|
||||
return d.iteritems()
|
||||
else:
|
||||
PY2 = False
|
||||
int_types = int
|
||||
unicode = str
|
||||
xrange = range
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue