[Updated] D12291: formatter: remove conditional assert
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Thu Mar 3 16:53:41 UTC 2022
Closed by commit rHG07a7b57d3e33: formatter: remove conditional assert (authored by indygreg).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D12291?vs=32416&id=32504
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D12291/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D12291
AFFECTED FILES
mercurial/formatter.py
CHANGE DETAILS
diff --git a/mercurial/formatter.py b/mercurial/formatter.py
--- a/mercurial/formatter.py
+++ b/mercurial/formatter.py
@@ -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)
To: indygreg, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220303/f143d89b/attachment-0002.html>
More information about the Mercurial-patches
mailing list