mercurial/hgweb/__init__.py
changeset 42242 91104f10ff65
parent 38211 aea29e81753a
child 43076 2372284d9457
--- 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