mercurial/pycompat.py
changeset 52639 9db77d46de79
parent 52096 19ae7730636a
child 52752 4eede65d68cf
--- a/mercurial/pycompat.py	Mon Jan 06 14:07:43 2025 -0500
+++ b/mercurial/pycompat.py	Mon Jan 06 14:15:40 2025 -0500
@@ -261,7 +261,7 @@
             return s
         if not isinstance(s, (bytes, bytearray)) and (
             isinstance(s, type)
-            or not builtins.hasattr(s, u'__bytes__')  # hasattr-py3-only
+            or not builtins.hasattr(s, '__bytes__')  # hasattr-py3-only
         ):
             s = str(s).encode('ascii')
         return bytes.__new__(cls, s)