hgweb: inform hgweb.hgweb() entrypoint that paths should be bytes
authorAugie Fackler <augie@google.com>
Fri, 13 Apr 2018 22:33:38 -0400
changeset 37745 42567ffa10a2
parent 37744 1398c2d74d3a
child 37746 b29f490eb904
hgweb: inform hgweb.hgweb() entrypoint that paths should be bytes Differential Revision: https://phab.mercurial-scm.org/D3354
mercurial/hgweb/__init__.py
--- a/mercurial/hgweb/__init__.py	Fri Apr 13 22:27:16 2018 -0400
+++ b/mercurial/hgweb/__init__.py	Fri Apr 13 22:33:38 2018 -0400
@@ -38,7 +38,7 @@
     - list of virtual:real tuples (multi-repo view)
     '''
 
-    if ((isinstance(config, str) and not os.path.isdir(config)) or
+    if ((isinstance(config, bytes) and not os.path.isdir(config)) or
         isinstance(config, dict) or isinstance(config, list)):
         # create a multi-dir interface
         return hgwebdir_mod.hgwebdir(config, baseui=baseui)