mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-05-28 23:34:49 -05:00

Python 3 changed the built-in round() function to use round-to-even for exact half-way cases. While this eliminates a bias away from zero and is thus a better choice in many cases, it's not what mkicon.py expected. Shadow the built-in with an invocation of the decimal module instead: this produces identical results for mkicon.py's purposes on both Python 2 and 3.