From 81fa7c59cf3f1d8f66501612840f18ab2132e82a Mon Sep 17 00:00:00 2001 From: maride Date: Mon, 7 Dec 2015 11:52:26 +0100 Subject: [PATCH] Remove bytes string characters ('b' and quotation marks) from 'Hosted by' output due to unneeded UTF-8 encoding/decoding (Fix #192) --- speedtest_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speedtest_cli.py b/speedtest_cli.py index d93d5c3..5310d91 100755 --- a/speedtest_cli.py +++ b/speedtest_cli.py @@ -704,7 +704,7 @@ def speedtest(): if not args.simple: print_(('Hosted by %(sponsor)s (%(name)s) [%(d)0.2f km]: ' - '%(latency)s ms' % best).encode('utf-8', 'ignore')) + '%(latency)s ms' % best)) else: print_('Ping: %(latency)s ms' % best)