diff hgext/lfs/wireprotolfsserver.py @ 50823:dde4b55a0785

wrapfunction: use sysstr instead of bytes as argument in "lfs" 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 Fri, 03 Feb 2023 04:23:12 +0100
parents 6000f5b25c9b
children d718eddf01d9
line wrap: on
line diff
--- a/hgext/lfs/wireprotolfsserver.py	Fri Feb 03 04:22:41 2023 +0100
+++ b/hgext/lfs/wireprotolfsserver.py	Fri Feb 03 04:23:12 2023 +0100
@@ -33,7 +33,7 @@
 eh = exthelper.exthelper()
 
 
-@eh.wrapfunction(wireprotoserver, b'handlewsgirequest')
+@eh.wrapfunction(wireprotoserver, 'handlewsgirequest')
 def handlewsgirequest(orig, rctx, req, res, checkperm):
     """Wrap wireprotoserver.handlewsgirequest() to possibly process an LFS
     request if it is left unprocessed by the wrapped method.