formatter: remove conditional assert
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 21 Feb 2022 10:26:25 -0700
changeset 48888 07a7b57d3e33
parent 48887 426cf9d98a5d
child 48889 9baec00b4ca1
formatter: remove conditional assert We always run on Python 3 now. Differential Revision: https://phab.mercurial-scm.org/D12291
mercurial/formatter.py
--- a/mercurial/formatter.py	Mon Feb 21 10:25:53 2022 -0700
+++ b/mercurial/formatter.py	Mon Feb 21 10:26:25 2022 -0700
@@ -558,8 +558,7 @@
 
 
 def literal_templatespec(tmpl):
-    if pycompat.ispy3:
-        assert not isinstance(tmpl, str), b'tmpl must not be a str'
+    assert not isinstance(tmpl, str), b'tmpl must not be a str'
     return templatespec(b'', tmpl, None)