wrapfunction: use sysstr instead of bytes as argument in "beautifygraph"
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 03 Feb 2023 04:09:49 +0100
changeset 50774 caa0a25f7243
parent 50773 8250ecb53f30
child 50775 3c8a31be81df
wrapfunction: use sysstr instead of bytes as argument in "beautifygraph" This is as valid and simpler, it will help us to eventually get ride of `safehasattr`.
hgext/beautifygraph.py
--- a/hgext/beautifygraph.py	Mon Jul 10 15:59:04 2023 +0200
+++ b/hgext/beautifygraph.py	Fri Feb 03 04:09:49 2023 +0100
@@ -103,5 +103,5 @@
         )
         return
 
-    extensions.wrapfunction(graphmod, b'outputgraph', outputprettygraph)
-    extensions.wrapfunction(templatekw, b'getgraphnode', getprettygraphnode)
+    extensions.wrapfunction(graphmod, 'outputgraph', outputprettygraph)
+    extensions.wrapfunction(templatekw, 'getgraphnode', getprettygraphnode)