changeset 50814:8dc2724d0304

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`.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 10 Jul 2023 16:12:33 +0200
parents 335aeb3d670b
children ba3add904ab4
files hgext/fastannotate/protocol.py hgext/fastannotate/support.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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)