summaryrefslogtreecommitdiff
path: root/msgpack
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2022-01-19 14:42:28 +0900
committerGitHub <noreply@github.com>2022-01-19 14:42:28 +0900
commit89ea57747ebcb0fad004a92ab00ebf13c10b2d51 (patch)
tree2d5ec721aabe18b8894a0df908caef4de429834e /msgpack
parentbdf0511e29b02427437b03e7d8454bd5076e837f (diff)
downloadmsgpack-python-89ea57747ebcb0fad004a92ab00ebf13c10b2d51.tar.gz
Don't define __*_ENDIAN__ macro on Unix. (#495)
Diffstat (limited to 'msgpack')
-rw-r--r--msgpack/fallback.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/msgpack/fallback.py b/msgpack/fallback.py
index b27acb2..9731a22 100644
--- a/msgpack/fallback.py
+++ b/msgpack/fallback.py
@@ -11,7 +11,6 @@ if PY2:
def dict_iteritems(d):
return d.iteritems()
-
else:
int_types = int
unicode = str
@@ -32,7 +31,6 @@ if sys.version_info < (3, 5):
and e.args[0].startswith("maximum recursion depth exceeded")
)
-
else:
def _is_recursionerror(e):
@@ -68,7 +66,6 @@ if hasattr(sys, "pypy_version_info"):
def getvalue(self):
return self.builder.build()
-
else:
USING_STRINGBUILDER = False
from io import BytesIO as StringIO
@@ -143,7 +140,6 @@ if sys.version_info < (2, 7, 6):
"""Explicit type cast for legacy struct.unpack_from"""
return struct.unpack_from(f, bytes(b), o)
-
else:
_unpack_from = struct.unpack_from