wrapfunction: use sysstr instead of bytes as argument in "pager"
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 03 Feb 2023 04:24:53 +0100
changeset 50788 05430a06a2eb
parent 50787 584fc92dd8d7
child 50789 cbd1da102417
wrapfunction: use sysstr instead of bytes as argument in "pager" This is as valid and simpler, it will help us to eventually get ride of `safehasattr`.
hgext/pager.py
--- a/hgext/pager.py	Fri Feb 03 04:24:40 2023 +0100
+++ b/hgext/pager.py	Fri Feb 03 04:24:53 2023 +0100
@@ -76,7 +76,7 @@
                 ui.disablepager()
         return orig(ui, options, cmd, cmdfunc)
 
-    extensions.wrapfunction(dispatch, b'_runcommand', pagecmd)
+    extensions.wrapfunction(dispatch, '_runcommand', pagecmd)
 
 
 attended = [b'annotate', b'cat', b'diff', b'export', b'glog', b'log', b'qdiff']