[PATCH] py3: drop unused aliases to array.array which are replaced with bytearray

Augie Fackler raf at durin42.com
Sun Mar 12 15:35:51 EDT 2017


On Sun, Mar 12, 2017 at 12:08:43PM -0700, Yuya Nishihara wrote:
> # HG changeset patch
> # User Yuya Nishihara <yuya at tcha.org>
> # Date 1489344422 25200
> #      Sun Mar 12 11:47:02 2017 -0700
> # Node ID 78cce06ea6c3820626e57704eda821095677a23b
> # Parent  ff6dc91618236ef7a3d315921133b48bbc0d6f89
> py3: drop unused aliases to array.array which are replaced with bytearray

Queued, thanks.

>
> diff --git a/mercurial/branchmap.py b/mercurial/branchmap.py
> --- a/mercurial/branchmap.py
> +++ b/mercurial/branchmap.py
> @@ -7,7 +7,6 @@
>
>  from __future__ import absolute_import
>
> -import array
>  import struct
>
>  from .node import (
> @@ -23,7 +22,6 @@ from . import (
>      util,
>  )
>
> -array = array.array
>  calcsize = struct.calcsize
>  pack = struct.pack
>  unpack = struct.unpack
> diff --git a/mercurial/tags.py b/mercurial/tags.py
> --- a/mercurial/tags.py
> +++ b/mercurial/tags.py
> @@ -12,7 +12,6 @@
>
>  from __future__ import absolute_import
>
> -import array
>  import errno
>
>  from .node import (
> @@ -28,8 +27,6 @@ from . import (
>      util,
>  )
>
> -array = array.array
> -
>  # Tags computation can be expensive and caches exist to make it fast in
>  # the common case.
>  #
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


More information about the Mercurial-devel mailing list