diff hgext/lfs/wrapper.py @ 37084:f0b6fbea00cf

stringutil: bulk-replace call sites to point to new module This might conflict with other patches floating around, sorry.
author Yuya Nishihara <yuya@tcha.org>
date Thu, 22 Mar 2018 21:56:20 +0900
parents f6b9f9ddd0de
children a54113fcc8c9
line wrap: on
line diff
--- a/hgext/lfs/wrapper.py	Thu Mar 22 21:19:31 2018 +0900
+++ b/hgext/lfs/wrapper.py	Thu Mar 22 21:56:20 2018 +0900
@@ -19,6 +19,10 @@
     util,
 )
 
+from mercurial.utils import (
+    stringutil,
+)
+
 from ..largefiles import lfutil
 
 from . import (
@@ -95,7 +99,7 @@
     # by default, we expect the content to be binary. however, LFS could also
     # be used for non-binary content. add a special entry for non-binary data.
     # this will be used by filectx.isbinary().
-    if not util.binary(text):
+    if not stringutil.binary(text):
         # not hg filelog metadata (affecting commit hash), no "x-hg-" prefix
         metadata['x-is-binary'] = '0'