wrapfunction: use sysstr instead of bytes as argument in "exthelper"
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 10 Jul 2023 19:33:14 +0200
changeset 50798 d9e22b39041a
parent 50797 4c6151b69085
child 50799 02eae2df911a
wrapfunction: use sysstr instead of bytes as argument in "exthelper" This is as valid and simpler, it will help us to eventually get ride of `safehasattr`.
mercurial/exthelper.py
--- a/mercurial/exthelper.py	Mon Jul 10 15:38:53 2023 +0200
+++ b/mercurial/exthelper.py	Mon Jul 10 19:33:14 2023 +0200
@@ -325,7 +325,7 @@
             # Required, otherwise the function will not be wrapped
             uisetup = eh.finaluisetup
 
-            @eh.wrapfunction(discovery, b'checkheads')
+            @eh.wrapfunction(discovery, 'checkheads')
             def wrapcheckheads(orig, *args, **kwargs):
                 ui.note(b'His head smashed in and his heart cut out')
                 return orig(*args, **kwargs)