# HG changeset patch # User Pierre-Yves David # Date 2023-02-03 03:09:49 # Node ID caa0a25f72433ce5687fb2a6f391c14b65bfd3ce # Parent 8250ecb53f309de9257cd82d40726b27dfb03aef 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`. diff --git a/hgext/beautifygraph.py b/hgext/beautifygraph.py --- a/hgext/beautifygraph.py +++ b/hgext/beautifygraph.py @@ -103,5 +103,5 @@ def extsetup(ui): ) return - extensions.wrapfunction(graphmod, b'outputgraph', outputprettygraph) - extensions.wrapfunction(templatekw, b'getgraphnode', getprettygraphnode) + extensions.wrapfunction(graphmod, 'outputgraph', outputprettygraph) + extensions.wrapfunction(templatekw, 'getgraphnode', getprettygraphnode)