[PATCH] util: drop remainder of dateutil/procutil aliases (API)

Yuya Nishihara yuya at tcha.org
Fri May 11 13:25:13 UTC 2018


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1526043206 -32400
#      Fri May 11 21:53:26 2018 +0900
# Node ID e2effc80f4388b5c9dc7effa3bd895350b5cf4ce
# Parent  7932be8b05591c0f80dffb28868afb2812b67169
util: drop remainder of dateutil/procutil aliases (API)

diff --git a/mercurial/util.py b/mercurial/util.py
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -47,7 +47,6 @@ from . import (
     urllibcompat,
 )
 from .utils import (
-    dateutil,
     procutil,
     stringutil,
 )
@@ -2919,6 +2918,7 @@ def timed(func):
         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 @@ def uvarintdecodestream(fh):
         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


More information about the Mercurial-devel mailing list