# HG changeset patch # User Matt Harbison # Date 2021-12-13 00:36:11 # Node ID cb477edeca799f54b1f9a5ac39437202ce331755 # Parent 6e4999cb085e5597e1dd19cda42b1b21664876cf upgrade: byteify a few error messages These were flagged by pytype (which is currently disabled on this file due to another failure). Differential Revision: https://phab.mercurial-scm.org/D11905 diff --git a/mercurial/upgrade.py b/mercurial/upgrade.py --- a/mercurial/upgrade.py +++ b/mercurial/upgrade.py @@ -278,7 +278,7 @@ def upgrade_share_to_safe( ui.warn(_(b'repository upgraded to use share-safe mode\n')) except error.LockError as e: hint = _( - "see `hg help config.format.use-share-safe` for more information" + b"see `hg help config.format.use-share-safe` for more information" ) if mismatch_config == b'upgrade-abort': raise error.Abort( @@ -335,7 +335,7 @@ def downgrade_share_to_non_safe( ui.warn(_(b'repository downgraded to not use share-safe mode\n')) except error.LockError as e: hint = _( - "see `hg help config.format.use-share-safe` for more information" + b"see `hg help config.format.use-share-safe` for more information" ) # If upgrade-abort is set, abort when upgrade fails, else let the # process continue as `upgrade-allow` is set