# HG changeset patch # User Martin von Zweigbergk # Date 1596044529 25200 # 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 -r 22eafb16f1c5 -r b7444cfc2c05 mercurial/templater.py --- a/mercurial/templater.py Thu Jul 23 10:20:48 2020 -0700 +++ b/mercurial/templater.py Wed Jul 29 10:42:09 2020 -0700 @@ -1089,9 +1089,6 @@ 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