# HG changeset patch # User Pierre-Yves David # Date 1688998353 -7200 # Node ID 8dc2724d03045fec71212c9ea54c11a3c7438a0a # Parent 335aeb3d670b9bd717902bc75f8709f51df741fe wrapfunction: use sysstr instead of bytes as argument in "fastannotate" This is as valid and simpler, it will help us to eventually get ride of `safehasattr`. diff -r 335aeb3d670b -r 8dc2724d0304 hgext/fastannotate/protocol.py --- a/hgext/fastannotate/protocol.py Fri Feb 03 04:10:22 2023 +0100 +++ b/hgext/fastannotate/protocol.py Mon Jul 10 16:12:33 2023 +0200 @@ -101,7 +101,7 @@ def serveruisetup(ui): _registerwireprotocommand() - extensions.wrapfunction(wireprotov1server, b'_capabilities', _capabilities) + extensions.wrapfunction(wireprotov1server, '_capabilities', _capabilities) # client-side diff -r 335aeb3d670b -r 8dc2724d0304 hgext/fastannotate/support.py --- a/hgext/fastannotate/support.py Fri Feb 03 04:10:22 2023 +0100 +++ b/hgext/fastannotate/support.py Mon Jul 10 16:12:33 2023 +0200 @@ -129,8 +129,8 @@ def replacehgwebannotate(): - extensions.wrapfunction(hgweb.webutil, b'annotate', _hgwebannotate) + extensions.wrapfunction(hgweb.webutil, 'annotate', _hgwebannotate) def replacefctxannotate(): - extensions.wrapfunction(hgcontext.basefilectx, b'annotate', _fctxannotate) + extensions.wrapfunction(hgcontext.basefilectx, 'annotate', _fctxannotate)