D2697: util: stop calling os.stat_float_times()

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Mon Mar 5 21:09:11 UTC 2018


durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  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.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2697

AFFECTED FILES
  mercurial/util.py

CHANGE DETAILS

diff --git a/mercurial/util.py b/mercurial/util.py
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -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
 



To: durin42, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list