[PATCH] py3: drop unused aliases to array.array which are replaced with bytearray
Yuya Nishihara
yuya at tcha.org
Sun Mar 12 19:08:43 UTC 2017
# 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
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.
#
More information about the Mercurial-devel
mailing list