mercurial/templateutil.py
changeset 37084 f0b6fbea00cf
parent 37074 2891079fb0c0
child 37104 7db3c28dfdfd
--- a/mercurial/templateutil.py	Thu Mar 22 21:19:31 2018 +0900
+++ b/mercurial/templateutil.py	Thu Mar 22 21:56:20 2018 +0900
@@ -15,6 +15,9 @@
     pycompat,
     util,
 )
+from .utils import (
+    stringutil,
+)
 
 class ResourceUnavailable(error.Abort):
     pass
@@ -281,7 +284,7 @@
         thing = func(context, mapping, data, default=None)
         if thing is None:
             # not a template keyword, takes as a boolean literal
-            thing = util.parsebool(data)
+            thing = stringutil.parsebool(data)
     else:
         thing = func(context, mapping, data)
     thing = unwrapvalue(thing)