changeset 50922:d28cc52e2c0f

relink: use sysstr to check for attribute presence We do not need bytes here.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 30 Aug 2023 14:38:30 +0200
parents 29ce50726ce0
children a99e62dae4c8
files hgext/relink.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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'))