changeset 45263:b7444cfc2c05

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
author Martin von Zweigbergk <martinvonz@google.com>
date Wed, 29 Jul 2020 10:42:09 -0700
parents 22eafb16f1c5
children 8cce9f77ca73
files mercurial/templater.py
diffstat 1 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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