diff mercurial/context.py @ 38751:71d6886d27cf stable

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.
author Augie Fackler <augie@google.com>
date Mon, 30 Jul 2018 09:50:32 -0400
parents 6a032a8f741b
children 545a3e6650cd
line wrap: on
line diff
--- 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)