templater: stop accepting a single style to stylemap()
authorMartin von Zweigbergk <martinvonz@google.com>
Wed, 29 Jul 2020 10:42:09 -0700
changeset 45263 b7444cfc2c05
parent 45262 22eafb16f1c5
child 45264 8cce9f77ca73
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
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