# HG changeset patch # User Manuel Jacob <me@manueljacob.de> # Date 1588470939 -7200 # Sun May 03 03:55:39 2020 +0200 # Node ID 503e9abfd50e9e4f97bbe7073b416c21489cb78f # Parent f506f3060f13c096d36e8f1390eff4f3cd4ed993 py3: avoid using repr() on bytes diff --git a/hggit/util.py b/hggit/util.py --- a/hggit/util.py +++ b/hggit/util.py @@ -147,5 +147,5 @@ """ host = compat.unquote(host) if host.startswith(b'-'): - raise error.Abort(_(b'potentially unsafe hostname: %r') % + raise error.Abort(_(b"potentially unsafe hostname: '%s'") % (host,))