changeset 50811:caa0a25f7243

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`.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 03 Feb 2023 04:09:49 +0100
parents 8250ecb53f30
children 3c8a31be81df
files hgext/beautifygraph.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)