diff mercurial/wireprotoframing.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 39304dd63589
children 3ed344546d9e
line wrap: on
line diff
--- a/mercurial/wireprotoframing.py	Thu Mar 22 21:19:31 2018 +0900
+++ b/mercurial/wireprotoframing.py	Thu Mar 22 21:56:20 2018 +0900
@@ -21,6 +21,9 @@
     error,
     util,
 )
+from .utils import (
+    stringutil,
+)
 
 FRAME_HEADER_SIZE = 6
 DEFAULT_MAX_FRAME_SIZE = 32768
@@ -164,7 +167,7 @@
         else:
             finalflags |= int(flag)
 
-    payload = util.unescapestr(payload)
+    payload = stringutil.unescapestr(payload)
 
     return makeframe(requestid=requestid, typeid=frametype,
                      flags=finalflags, payload=payload)