util: drop remainder of dateutil/procutil aliases (API)
authorYuya Nishihara <yuya@tcha.org>
Fri, 11 May 2018 21:53:26 +0900
changeset 37972 59f1e33f74a6
parent 37971 3ac950cd5978
child 37973 5b60f7d652f2
util: drop remainder of dateutil/procutil aliases (API)
mercurial/util.py
--- 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