mercurial/revlog.py
changeset 37084 f0b6fbea00cf
parent 36760 7bf80d9d9543
child 37442 0596d27457c6
--- a/mercurial/revlog.py	Thu Mar 22 21:19:31 2018 +0900
+++ b/mercurial/revlog.py	Thu Mar 22 21:56:20 2018 +0900
@@ -45,6 +45,9 @@
     templatefilters,
     util,
 )
+from .utils import (
+    stringutil,
+)
 
 parsers = policy.importmod(r'parsers')
 
@@ -2017,7 +2020,7 @@
                 return _zlibdecompress(data)
             except zlib.error as e:
                 raise RevlogError(_('revlog decompress error: %s') %
-                                  util.forcebytestr(e))
+                                  stringutil.forcebytestr(e))
         # '\0' is more common than 'u' so it goes first.
         elif t == '\0':
             return data