changeset 50795:193a6e9a56f3

wrapfunction: use sysstr instead of bytes as argument in "perf" 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:31:26 +0200
parents c3d7a0828b7b
children 7a50e1720f6d
files contrib/perf.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/perf.py	Fri Feb 03 04:30:44 2023 +0100
+++ b/contrib/perf.py	Mon Jul 10 19:31:26 2023 +0200
@@ -4421,7 +4421,8 @@
                 )
             return orig(repo, cmd, file_, opts)
 
-        extensions.wrapfunction(cmdutil, b'openrevlog', openrevlog)
+        name = _sysstr(b'openrevlog')
+        extensions.wrapfunction(cmdutil, name, openrevlog)
 
 
 @command(