hgweb: inform hgweb.hgweb() entrypoint that paths should be bytes
Differential Revision: https://phab.mercurial-scm.org/D3354
--- 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)