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

2017-03-12 Thread Augie Fackler
On Sun, Mar 12, 2017 at 12:08:43PM -0700, Yuya Nishihara wrote:
> # HG changeset patch
> # User Yuya Nishihara 
> # 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@mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


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

2017-03-12 Thread Yuya Nishihara
# HG changeset patch
# User Yuya Nishihara 
# 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

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@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel