context: add missing b prefix stable
authorAugie Fackler <augie@google.com>
Mon, 30 Jul 2018 09:50:32 -0400
branchstable
changeset 38751 71d6886d27cf
parent 38750 a8bfaf592033
child 38752 8623a6c96998
context: add missing b prefix This fixes mercurial/context.py:593: SyntaxError: cannot mix bytes and nonbytes literals (context.py, line 593) in Python 3.
mercurial/context.py
--- a/mercurial/context.py	Sat Jul 28 16:36:35 2018 +0900
+++ b/mercurial/context.py	Mon Jul 30 09:50:32 2018 -0400
@@ -591,7 +591,7 @@
 
     def descendant(self, other):
         msg = (b'ctx.descendant(other) is deprecated, '
-               'use ctx.isancestorof(other)')
+               b'use ctx.isancestorof(other)')
         self._repo.ui.deprecwarn(msg, b'4.7')
         return self.isancestorof(other)