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

Gregory Szorc gregory.szorc at gmail.com
Fri May 11 20:08:23 EDT 2018


On Fri, May 11, 2018 at 6:25 AM, Yuya Nishihara <yuya at tcha.org> wrote:

> # 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)
>
>
Queued, thanks.


> 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
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20180511/767b10b1/attachment.html>


More information about the Mercurial-devel mailing list