relink: use sysstr to check for attribute presence
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 30 Aug 2023 14:38:30 +0200
changeset 50899 d28cc52e2c0f
parent 50898 29ce50726ce0
child 50900 a99e62dae4c8
relink: use sysstr to check for attribute presence We do not need bytes here.
hgext/relink.py
--- a/hgext/relink.py	Wed Aug 30 14:22:55 2023 +0200
+++ b/hgext/relink.py	Wed Aug 30 14:38:30 2023 +0200
@@ -60,8 +60,8 @@
     command is running. (Both repositories will be locked against
     writes.)
     """
-    if not util.safehasattr(util, b'samefile') or not util.safehasattr(
-        util, b'samedevice'
+    if not util.safehasattr(util, 'samefile') or not util.safehasattr(
+        util, 'samedevice'
     ):
         raise error.Abort(_(b'hardlinks are not supported on this system'))