# HG changeset patch # User Pierre-Yves David # Date 2023-07-10 17:33:14 # Node ID d9e22b39041af4570f9e3e9210a2d27d4caa4584 # Parent 4c6151b6908553c13ea62be832b7ae3260439404 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`. diff --git a/mercurial/exthelper.py b/mercurial/exthelper.py --- a/mercurial/exthelper.py +++ b/mercurial/exthelper.py @@ -325,7 +325,7 @@ class exthelper: # 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)