changeset 38016:59f1e33f74a6

util: drop remainder of dateutil/procutil aliases (API)
author Yuya Nishihara <yuya@tcha.org>
date Fri, 11 May 2018 21:53:26 +0900
parents 3ac950cd5978
children 5b60f7d652f2
files mercurial/util.py
diffstat 1 files changed, 1 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/util.py	Thu May 03 15:57:12 2018 -0700
+++ b/mercurial/util.py	Fri May 11 21:53:26 2018 +0900
@@ -47,7 +47,6 @@
     urllibcompat,
 )
 from .utils import (
-    dateutil,
     procutil,
     stringutil,
 )
@@ -2919,6 +2918,7 @@
         finally:
             elapsed = timer() - start
             _timenesting[0] -= indent
+            stderr = procutil.stderr
             stderr.write('%s%s: %s\n' %
                          (' ' * _timenesting[0], func.__name__,
                           timecount(elapsed)))
@@ -3782,11 +3782,3 @@
         if not (byte & 0x80):
             return result
         shift += 7
-
-defaultdateformats = dateutil.defaultdateformats
-extendeddateformats = dateutil.extendeddateformats
-
-stderr = procutil.stderr
-stdin = procutil.stdin
-stdout = procutil.stdout
-closefds = procutil.closefds