sshpeer: convert command name to sysstr before accessing method
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 30 Aug 2023 11:50:01 +0200
changeset 50920 882687259181
parent 50919 b3174be5e7f7
child 50921 538c5a48e8f4
sshpeer: convert command name to sysstr before accessing method Method name are `str` so we should pass them as `str`.
mercurial/sshpeer.py
--- 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: