mercurial/match.py
changeset 37087 f0b6fbea00cf
parent 36601 9adfa48792a7
child 38061 2f406142d7b4
--- a/mercurial/match.py	Thu Mar 22 21:19:31 2018 +0900
+++ b/mercurial/match.py	Thu Mar 22 21:56:20 2018 +0900
@@ -19,6 +19,9 @@
     pycompat,
     util,
 )
+from .utils import (
+    stringutil,
+)
 
 allpatternkinds = ('re', 'glob', 'path', 'relglob', 'relpath', 'relre',
                    'listfile', 'listfile0', 'set', 'include', 'subinclude',
@@ -227,7 +230,7 @@
             except IOError as inst:
                 if warn:
                     warn(_("skipping unreadable pattern file '%s': %s\n") %
-                         (pat, util.forcebytestr(inst.strerror)))
+                         (pat, stringutil.forcebytestr(inst.strerror)))
             continue
         # else: re or relre - which cannot be normalized
         kindpats.append((kind, pat, ''))