[PATCH stable] context: add missing b prefix
Augie Fackler
raf at durin42.com
Mon Jul 30 13:50:43 UTC 2018
# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1532958632 14400
# Mon Jul 30 09:50:32 2018 -0400
# Branch stable
# Node ID 71d6886d27cf94dc45d0e495c3912d3c6e74794e
# Parent a8bfaf592033a8c10e5c8bf8d5edda90ba45c611
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.
diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -591,7 +591,7 @@ class changectx(basectx):
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)
More information about the Mercurial-devel
mailing list