diff hgext/fastannotate/support.py @ 50777: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 642e31cb55f0
children 18c8c18993f0
line wrap: on
line diff
--- 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)