diff mercurial/mail.py @ 52678:b3e68fd7864b

pyupgrade: primitive types directly where possible This was rewritten by the `type_of_primitive` fixer in `pyupgrade`. Interesting that 9db77d46de79 missed a bunch of these `u''` prefixes.
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 06 Jan 2025 01:39:53 -0500
parents 9db77d46de79
children
line wrap: on
line diff
--- a/mercurial/mail.py	Mon Jan 06 01:37:43 2025 -0500
+++ b/mercurial/mail.py	Mon Jan 06 01:39:53 2025 -0500
@@ -519,7 +519,7 @@
                 pass
         # On Python 3, decode_header() may return either bytes or unicode
         # depending on whether the header has =?<charset>? or not
-        if isinstance(part, type(u'')):
+        if isinstance(part, str):
             uparts.append(part)
             continue
         try: