diff mercurial/util.py @ 36790:86ba6e3eba4e

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
author Augie Fackler <augie@google.com>
date Mon, 05 Mar 2018 12:31:08 -0500
parents ffa3026d4196
children 1fbbb8e83392
line wrap: on
line diff
--- 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