Mercurial > evolve
changeset 5867:3c3809c3f603 stable
compat: remove unused arraytobytes/arrayfrombytes
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Fri, 02 Apr 2021 18:56:43 +0800 |
parents | 5931ad39ea37 |
children | c61e1577c62f |
files | hgext3rd/evolve/compat.py |
diffstat | 1 files changed, 0 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/evolve/compat.py Wed Mar 31 20:39:37 2021 +0800 +++ b/hgext3rd/evolve/compat.py Fri Apr 02 18:56:43 2021 +0800 @@ -6,7 +6,6 @@ Compatibility module """ -import array import contextlib from mercurial import ( @@ -17,7 +16,6 @@ logcmdutil, merge as mergemod, obsolete, - pycompat, registrar, repair, scmutil, @@ -25,13 +23,6 @@ ui as uimod, ) -if pycompat.ispy3: - arraytobytes = array.array.tobytes - arrayfrombytes = array.array.frombytes -else: - arraytobytes = array.array.tostring - arrayfrombytes = array.array.fromstring - # hg <= 5.2 (c21aca51b392) try: from mercurial import pathutil