# HG changeset patch # User Augie Fackler # Date 1523673218 14400 # Node ID 42567ffa10a269bf4b9de2fa3fb275852218cd31 # Parent 1398c2d74d3a41c5e2ff159dc8594f91641bc485 hgweb: inform hgweb.hgweb() entrypoint that paths should be bytes Differential Revision: https://phab.mercurial-scm.org/D3354 diff -r 1398c2d74d3a -r 42567ffa10a2 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)