# HG changeset patch # User Martin von Zweigbergk # Date 2020-07-29 17:42:09 # Node ID b7444cfc2c05ba705753a3769d2150f84ff0ebd6 # Parent 22eafb16f1c5af87ecd8077014cd971d6c7c78ce templater: stop accepting a single style to stylemap() The code seems to have been for compatibility across d3dbdca92458 (hgweb: don't choke when an inexistent style is requested (issue1901), 2009-11-12). Differential Revision: https://phab.mercurial-scm.org/D8844 diff --git a/mercurial/templater.py b/mercurial/templater.py --- a/mercurial/templater.py +++ b/mercurial/templater.py @@ -1089,9 +1089,6 @@ def stylemap(styles, path=None): if path is None: path = templatedir() - if isinstance(styles, bytes): - styles = [styles] - if path is not None: for style in styles: # only plain name is allowed to honor template paths