author | Ludovic Chabant <ludovic@chabant.com> |
Fri, 19 Apr 2019 14:26:32 +0000 | |
changeset 42208 | 91104f10ff65 |
parent 42207 | 7ed472e79096 |
child 42210 | 390ec72b8ea4 |
--- a/mercurial/hgweb/__init__.py Fri Apr 19 14:25:18 2019 +0000 +++ b/mercurial/hgweb/__init__.py Fri Apr 19 14:26:32 2019 +0000 @@ -38,6 +38,9 @@ - list of virtual:real tuples (multi-repo view) ''' + if isinstance(config, pycompat.unicode): + raise error.ProgrammingError( + 'Mercurial only supports encoded strings: %r' % config) if ((isinstance(config, bytes) and not os.path.isdir(config)) or isinstance(config, dict) or isinstance(config, list)): # create a multi-dir interface