# HG changeset patch # User Pierre-Yves David # Date 1689010286 -7200 # Node ID 193a6e9a56f37936b38e4773213a9553f529e2fb # Parent c3d7a0828b7ba1e50a473d440e3df3fcca924695 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`. diff -r c3d7a0828b7b -r 193a6e9a56f3 contrib/perf.py --- 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(