diff mercurial/hgweb/__init__.py @ 48934:06de08b36c82

py3: use str instead of pycompat.unicode pycompat.unicode is an alias to str. Differential Revision: https://phab.mercurial-scm.org/D12340
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 21 Feb 2022 11:24:57 -0700
parents 6000f5b25c9b
children 642e31cb55f0
line wrap: on
line diff
--- a/mercurial/hgweb/__init__.py	Tue Mar 08 10:58:22 2022 +0100
+++ b/mercurial/hgweb/__init__.py	Mon Feb 21 11:24:57 2022 -0700
@@ -36,7 +36,7 @@
     - list of virtual:real tuples (multi-repo view)
     """
 
-    if isinstance(config, pycompat.unicode):
+    if isinstance(config, str):
         raise error.ProgrammingError(
             b'Mercurial only supports encoded strings: %r' % config
         )