Mercurial > hg
diff mercurial/formatter.py @ 48888:07a7b57d3e33
formatter: remove conditional assert
We always run on Python 3 now.
Differential Revision: https://phab.mercurial-scm.org/D12291
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 21 Feb 2022 10:26:25 -0700 |
parents | 6000f5b25c9b |
children | f254fc73d956 |
line wrap: on
line diff
--- 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)