diff --git a/grumpy-runtime-src/third_party/stdlib/json/decoder.py b/grumpy-runtime-src/third_party/stdlib/json/decoder.py index adb1aae5..ea40886c 100644 --- a/grumpy-runtime-src/third_party/stdlib/json/decoder.py +++ b/grumpy-runtime-src/third_party/stdlib/json/decoder.py @@ -18,8 +18,10 @@ FLAGS = re.VERBOSE | re.MULTILINE | re.DOTALL def _floatconstants(): - nan, = struct.unpack('>d', b'\x7f\xf8\x00\x00\x00\x00\x00\x00') - inf, = struct.unpack('>d', b'\x7f\xf0\x00\x00\x00\x00\x00\x00') + nan = struct.unpack('>d', b'\x7f\xf8\x00\x00\x00\x00\x00\x00') + inf = struct.unpack('>d', b'\x7f\xf0\x00\x00\x00\x00\x00\x00') + nan = nan[0] + inf = inf[0] return nan, inf, -inf NaN, PosInf, NegInf = _floatconstants()