diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-05-08 18:18:48 +0300 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-05-08 18:18:48 +0300 |
commit | b715bfee8f04d7b46fba62ec9d9ab95fe1a61ffd (patch) | |
tree | 1bfa9feced89238e4c1cfa6cad01f098ea33e6dc /simplejson/decoder.py | |
parent | f1a06fc7598f324acee332b02b6ecc43773b7b5d (diff) | |
download | simplejson-b715bfee8f04d7b46fba62ec9d9ab95fe1a61ffd.tar.gz |
Remofe remnants of Python 2.4 support.no-py2.4
Clean up the code by removing workarounds for supporting Python 2.4.
Diffstat (limited to 'simplejson/decoder.py')
-rw-r--r-- | simplejson/decoder.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/simplejson/decoder.py b/simplejson/decoder.py index 29de124..48f46c9 100644 --- a/simplejson/decoder.py +++ b/simplejson/decoder.py @@ -24,11 +24,7 @@ FLAGS = re.VERBOSE | re.MULTILINE | re.DOTALL def _floatconstants(): if sys.version_info < (2, 6): _BYTES = '7FF80000000000007FF0000000000000'.decode('hex') - # The struct module in Python 2.4 would get frexp() out of range here - # when an endian is specified in the format string. Fixed in Python 2.5+ - if sys.byteorder != 'big': - _BYTES = _BYTES[:8][::-1] + _BYTES[8:][::-1] - nan, inf = struct.unpack('dd', _BYTES) + nan, inf = struct.unpack('>dd', _BYTES) else: nan = float('nan') inf = float('inf') |