wrapfunction: use sysstr instead of bytes as argument in "histedit"
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 03 Feb 2023 04:21:32 +0100
changeset 50781 0fbc0c978053
parent 50780 534c0dadd210
child 50782 014ff9a62501
wrapfunction: use sysstr instead of bytes as argument in "histedit" This is as valid and simpler, it will help us to eventually get ride of `safehasattr`.
hgext/histedit.py
--- a/hgext/histedit.py	Fri Feb 03 04:20:58 2023 +0100
+++ b/hgext/histedit.py	Fri Feb 03 04:21:32 2023 +0100
@@ -2652,7 +2652,7 @@
     return orig(ui, repo, nodelist, *args, **kwargs)
 
 
-extensions.wrapfunction(repair, b'strip', stripwrapper)
+extensions.wrapfunction(repair, 'strip', stripwrapper)
 
 
 def summaryhook(ui, repo):