Mercurial > hg
changeset 50920:882687259181
sshpeer: convert command name to sysstr before accessing method
Method name are `str` so we should pass them as `str`.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 30 Aug 2023 11:50:01 +0200 |
parents | b3174be5e7f7 |
children | 538c5a48e8f4 |
files | mercurial/sshpeer.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/sshpeer.py Wed Aug 30 01:23:30 2023 +0200 +++ b/mercurial/sshpeer.py Wed Aug 30 11:50:01 2023 +0200 @@ -130,7 +130,7 @@ if sideready: _forwardoutput(self._ui, self._side) if mainready: - meth = getattr(self._main, methname) + meth = getattr(self._main, pycompat.sysstr(methname)) if data is None: return meth() else: