mercurial/logcmdutil.py
changeset 40285 96164fb9b913
parent 39796 94ca3579e84e
child 41097 6a63ba61e71f
--- a/mercurial/logcmdutil.py	Sun Oct 14 05:28:01 2018 -0400
+++ b/mercurial/logcmdutil.py	Sun Oct 14 04:37:25 2018 -0400
@@ -460,6 +460,8 @@
                 self.footer = self.t.render(self._parts['footer'], props)
 
 def templatespec(tmpl, mapfile):
+    if pycompat.ispy3:
+        assert not isinstance(tmpl, str), 'tmpl must not be a str'
     if mapfile:
         return formatter.templatespec('changeset', tmpl, mapfile)
     else: