# HG changeset patch # User Pierre-Yves David # Date 1693399110 -7200 # Node ID d28cc52e2c0f8a78204f7d5351756d33779a2b18 # Parent 29ce50726ce00a40b4668870c883964cda75f95e relink: use sysstr to check for attribute presence We do not need bytes here. diff -r 29ce50726ce0 -r d28cc52e2c0f 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'))