mq: use sysstr to check for attribute presence
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 30 Aug 2023 12:38:02 +0200
changeset 50923 a99e62dae4c8
parent 50922 d28cc52e2c0f
child 50924 6543469a351e
mq: use sysstr to check for attribute presence We do not need bytes here.
hgext/mq.py
--- a/hgext/mq.py	Wed Aug 30 14:38:30 2023 +0200
+++ b/hgext/mq.py	Wed Aug 30 12:38:02 2023 +0200
@@ -4186,7 +4186,7 @@
 
 
 def mqimport(orig, ui, repo, *args, **kwargs):
-    if util.safehasattr(repo, b'abortifwdirpatched') and not kwargs.get(
+    if util.safehasattr(repo, 'abortifwdirpatched') and not kwargs.get(
         'no_commit', False
     ):
         repo.abortifwdirpatched(