changeset 50923:a99e62dae4c8

mq: 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 12:38:02 +0200
parents d28cc52e2c0f
children 6543469a351e
files hgext/mq.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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(