diff mercurial/dagparser.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 dfd009e5f9f2
children e7aa113b14f7
line wrap: on
line diff
--- a/mercurial/dagparser.py	Thu Mar 22 21:19:31 2018 +0900
+++ b/mercurial/dagparser.py	Thu Mar 22 21:56:20 2018 +0900
@@ -14,7 +14,9 @@
 from . import (
     error,
     pycompat,
-    util,
+)
+from .utils import (
+    stringutil,
 )
 
 def parsedag(desc):
@@ -372,8 +374,8 @@
                 else:
                     raise error.Abort(_("invalid event type in dag: "
                                         "('%s', '%s')")
-                                      % (util.escapestr(kind),
-                                         util.escapestr(data)))
+                                      % (stringutil.escapestr(kind),
+                                         stringutil.escapestr(data)))
         if run:
             yield '+%d' % run