# HG changeset patch # User Pierre-Yves David # Date 2023-08-30 12:38:30 # Node ID d28cc52e2c0f8a78204f7d5351756d33779a2b18 # Parent 29ce50726ce00a40b4668870c883964cda75f95e relink: use sysstr to check for attribute presence We do not need bytes here. diff --git a/hgext/relink.py b/hgext/relink.py --- a/hgext/relink.py +++ b/hgext/relink.py @@ -60,8 +60,8 @@ def relink(ui, repo, origin=None, **opts 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'))