Mercurial > hg-stable
changeset 48979: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 | 426cf9d98a5d |
children | 9baec00b4ca1 |
files | mercurial/formatter.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
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)