Mercurial > public > mercurial-scm > hg
diff hgext/pager.py @ 50785:05430a06a2eb
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`.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 03 Feb 2023 04:24:53 +0100 |
parents | 6000f5b25c9b |
children | f4733654f144 |
line wrap: on
line diff
--- 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']