# HG changeset patch # User Pierre-Yves David # Date 2023-02-03 03:24:53 # Node ID 05430a06a2eb4cb148e8685f272fa40dc6ca4fe3 # Parent 584fc92dd8d78ce889cc4bf31c49a2c6847e1f07 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`. diff --git a/hgext/pager.py b/hgext/pager.py --- a/hgext/pager.py +++ b/hgext/pager.py @@ -76,7 +76,7 @@ def uisetup(ui): 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']