Author: Carl Friedrich Bolz-Tereick <[email protected]>
Branch: json-decoder-maps
Changeset: r96773:8455aa36a879
Date: 2019-06-07 10:10 +0200
http://bitbucket.org/pypy/pypy/changeset/8455aa36a879/
Log: fix translation maybe
diff --git a/pypy/module/_pypyjson/interp_decoder.py
b/pypy/module/_pypyjson/interp_decoder.py
--- a/pypy/module/_pypyjson/interp_decoder.py
+++ b/pypy/module/_pypyjson/interp_decoder.py
@@ -894,7 +894,7 @@
def cleanup_fringe(self):
""" remove the least-instantiated fringe map and block it."""
min_fringe = None
- min_avg = 10000000000
+ min_avg = float('inf')
for f in self.current_fringe:
assert f.state == MapBase.FRINGE
avg = f.average_instantiation()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit