diff mercurial/i18n.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 18c8c18993f0
line wrap: on
line diff
--- a/mercurial/i18n.py	Tue Mar 08 10:58:22 2022 +0100
+++ b/mercurial/i18n.py	Mon Feb 21 11:24:57 2022 -0700
@@ -85,9 +85,9 @@
 
     cache = _msgcache.setdefault(encoding.encoding, {})
     if message not in cache:
-        if type(message) is pycompat.unicode:
+        if type(message) is str:
             # goofy unicode docstrings in test
-            paragraphs = message.split(u'\n\n')  # type: List[pycompat.unicode]
+            paragraphs = message.split(u'\n\n')  # type: List[str]
         else:
             # should be ascii, but we have unicode docstrings in test, which
             # are converted to utf-8 bytes on Python 3.