diff tests/dummysmtpd.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 dbd2d56224d1
children f8f14e6d032b
line wrap: on
line diff
--- a/tests/dummysmtpd.py	Mon Jan 06 01:37:43 2025 -0500
+++ b/tests/dummysmtpd.py	Mon Jan 06 01:39:53 2025 -0500
@@ -126,7 +126,7 @@
 
 
 def _encodestrsonly(v):
-    if isinstance(v, type(u'')):
+    if isinstance(v, str):
         return v.encode('ascii')
     return v