mercurial/formatter.py
changeset 45266 215f08c8006c
parent 45264 8cce9f77ca73
child 45309 65a812ed9e9f
--- a/mercurial/formatter.py	Mon Jul 20 21:32:10 2020 -0700
+++ b/mercurial/formatter.py	Mon Jul 20 21:33:28 2020 -0700
@@ -551,6 +551,8 @@
 
 
 def literal_templatespec(tmpl):
+    if pycompat.ispy3:
+        assert not isinstance(tmpl, str), b'tmpl must not be a str'
     return templatespec(b'', tmpl, None)