We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9df19bb + 321a0ac commit 9a1e23aCopy full SHA for 9a1e23a
grumpy-runtime-src/third_party/stdlib/json/decoder.py
@@ -18,8 +18,10 @@
18
FLAGS = re.VERBOSE | re.MULTILINE | re.DOTALL
19
20
def _floatconstants():
21
- nan, = struct.unpack('>d', b'\x7f\xf8\x00\x00\x00\x00\x00\x00')
22
- 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')
23
+ nan = nan[0]
24
+ inf = inf[0]
25
return nan, inf, -inf
26
27
NaN, PosInf, NegInf = _floatconstants()
0 commit comments