diff mercurial/exthelper.py @ 50835:d9e22b39041a

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`.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 10 Jul 2023 19:33:14 +0200
parents 642e31cb55f0
children f4733654f144
line wrap: on
line diff
--- 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)