From patchwork Mon Jul 30 13:50:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [stable] context: add missing b prefix From: Augie Fackler X-Patchwork-Id: 32968 Message-Id: <71d6886d27cf94dc45d0.1532958643@augie-macbookpro2.roam.corp.google.com> To: mercurial-devel@mercurial-scm.org Date: Mon, 30 Jul 2018 09:50:43 -0400 # HG changeset patch # User Augie Fackler # 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)