wrapfunction: use sysstr instead of bytes as argument in "clonebundles"
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 03 Feb 2023 04:10:22 +0100
changeset 50813 335aeb3d670b
parent 50812 3c8a31be81df
child 50814 8dc2724d0304
wrapfunction: use sysstr instead of bytes as argument in "clonebundles" This is as valid and simpler, it will help us to eventually get ride of `safehasattr`.
hgext/clonebundles.py
--- a/hgext/clonebundles.py	Fri Feb 03 04:10:00 2023 +0100
+++ b/hgext/clonebundles.py	Fri Feb 03 04:10:22 2023 +0100
@@ -349,7 +349,7 @@
 
 
 def extsetup(ui):
-    extensions.wrapfunction(wireprotov1server, b'_capabilities', capabilities)
+    extensions.wrapfunction(wireprotov1server, '_capabilities', capabilities)
 
 
 # logic for bundle auto-generation