util: stop calling os.stat_float_times()
It had Python-wide side effects, and it disappears in 3.7.0.
As of this change, we're mostly working on 3.7.0b2. There are a few
worrying failures, mostly around regular expressions, but we'll have
to tackle those separately.
Differential Revision: https://phab.mercurial-scm.org/D2697
--- a/mercurial/util.py Mon Mar 05 12:30:20 2018 -0500
+++ b/mercurial/util.py Mon Mar 05 12:31:08 2018 -0500
@@ -176,11 +176,6 @@
_notset = object()
-# disable Python's problematic floating point timestamps (issue4836)
-# (Python hypocritically says you shouldn't change this behavior in
-# libraries, and sure enough Mercurial is not a library.)
-os.stat_float_times(False)
-
def safehasattr(thing, attr):
return getattr(thing, attr, _notset) is not _notset