diff mercurial/revlog.py @ 37087: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 7bf80d9d9543
children 0596d27457c6
line wrap: on
line diff
--- 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