py3: use pycompat.bytestr() to convert None to bytes
authorPulkit Goyal <7895pulkit@gmail.com>
Fri, 02 Mar 2018 04:47:56 +0530
changeset 36554 06f59bdde626
parent 36553 24897a9d18ac
child 36555 c28de190e20a
py3: use pycompat.bytestr() to convert None to bytes Differential Revision: https://phab.mercurial-scm.org/D2533
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Thu Mar 01 18:39:21 2018 -0500
+++ b/mercurial/localrepo.py	Fri Mar 02 04:47:56 2018 +0530
@@ -191,7 +191,9 @@
 
     def debugwireargs(self, one, two, three=None, four=None, five=None):
         """Used to test argument passing over the wire"""
-        return "%s %s %s %s %s" % (one, two, three, four, five)
+        return "%s %s %s %s %s" % (one, two, pycompat.bytestr(three),
+                                   pycompat.bytestr(four),
+                                   pycompat.bytestr(five))
 
     def getbundle(self, source, heads=None, common=None, bundlecaps=None,
                   **kwargs):
@@ -2231,7 +2233,9 @@
 
     def debugwireargs(self, one, two, three=None, four=None, five=None):
         '''used to test argument passing over the wire'''
-        return "%s %s %s %s %s" % (one, two, three, four, five)
+        return "%s %s %s %s %s" % (one, two, pycompat.bytestr(three),
+                                   pycompat.bytestr(four),
+                                   pycompat.bytestr(five))
 
     def savecommitmessage(self, text):
         fp = self.vfs('last-message.txt', 'wb')