Author: Carl Friedrich Bolz-Tereick <[email protected]>
Branch: json-decoder-maps
Changeset: r96776:89f77e4471e9
Date: 2019-06-07 21:29 +0200
http://bitbucket.org/pypy/pypy/changeset/89f77e4471e9/
Log: try again
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 = float('inf')
+ min_avg = 1e200
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