# HG changeset patch # User Anton Shestakov # Date 1617361003 -28800 # Node ID 3c3809c3f603f0976f9b92b89051e652db431e7a # Parent 5931ad39ea37f04c878ec7dee68d1141a10e862b compat: remove unused arraytobytes/arrayfrombytes diff -r 5931ad39ea37 -r 3c3809c3f603 hgext3rd/evolve/compat.py --- 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