##// END OF EJS Templates
templatespec: move check for non-unicode to lower-level function...
Martin von Zweigbergk -
r45826:215f08c8 default
parent child Browse files
Show More
@@ -551,6 +551,8 b' def reference_templatespec(ref, refargs='
551
551
552
552
553 def literal_templatespec(tmpl):
553 def literal_templatespec(tmpl):
554 if pycompat.ispy3:
555 assert not isinstance(tmpl, str), b'tmpl must not be a str'
554 return templatespec(b'', tmpl, None)
556 return templatespec(b'', tmpl, None)
555
557
556
558
@@ -607,8 +607,6 b' def templatespec(tmpl, mapfile):'
607 if mapfile:
607 if mapfile:
608 return formatter.mapfile_templatespec(b'changeset', mapfile)
608 return formatter.mapfile_templatespec(b'changeset', mapfile)
609 else:
609 else:
610 if pycompat.ispy3:
611 assert not isinstance(tmpl, str), b'tmpl must not be a str'
612 return formatter.literal_templatespec(tmpl)
610 return formatter.literal_templatespec(tmpl)
613
611
614
612
General Comments 0
You need to be logged in to leave comments. Login now