util: stop calling os.stat_float_times()
authorAugie Fackler <augie@google.com>
Mon, 05 Mar 2018 12:31:08 -0500
changeset 36782 86ba6e3eba4e
parent 36781 ffa3026d4196
child 36783 1fbbb8e83392
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
mercurial/util.py
--- 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