changeset 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 a8bfaf592033
children 8623a6c96998
files mercurial/context.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)