changeset 31645:6d30699729dd

bdiff: drop support for array.array argument from pure.bdiff.bdiff() Thanks to 2a18e9e6ca43, we no longer pass array.array('c') object to bdiff().
author Yuya Nishihara <yuya@tcha.org>
date Sun, 26 Mar 2017 16:14:04 +0900
parents 84242dce8305
children f2b334e6c7e0
files mercurial/pure/bdiff.py
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/pure/bdiff.py	Sun Mar 26 15:55:34 2017 +0200
+++ b/mercurial/pure/bdiff.py	Sun Mar 26 16:14:04 2017 +0900
@@ -7,7 +7,6 @@
 
 from __future__ import absolute_import
 
-import array
 import difflib
 import re
 import struct
@@ -56,9 +55,6 @@
     return r
 
 def _tostring(c):
-    if type(c) is array.array:
-        # this copy overhead isn't ideal
-        return c.tostring()
     return str(c)
 
 def bdiff(a, b):