changeset 37745:42567ffa10a2

hgweb: inform hgweb.hgweb() entrypoint that paths should be bytes Differential Revision: https://phab.mercurial-scm.org/D3354
author Augie Fackler <augie@google.com>
date Fri, 13 Apr 2018 22:33:38 -0400
parents 1398c2d74d3a
children b29f490eb904
files mercurial/hgweb/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)