Skip to content
Snippets Groups Projects
Commit 503e9abfd50e authored by Manuel Jacob's avatar Manuel Jacob
Browse files

py3: avoid using repr() on bytes

parent f506f3060f13
No related branches found
No related tags found
1 merge request!21Make tests pass on Python 3
Pipeline #5772 passed with warnings
......@@ -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,))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment