# HG changeset patch # User Gregory Szorc # Date 1645464385 25200 # Node ID 07a7b57d3e3360e2bbf0950ae6b464206255bfdf # Parent 426cf9d98a5d5e56f7f8199e70ec23bb54ce5cd9 formatter: remove conditional assert We always run on Python 3 now. Differential Revision: https://phab.mercurial-scm.org/D12291 diff -r 426cf9d98a5d -r 07a7b57d3e33 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)