summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>2018-02-17 10:15:32 +0100
committerPatrice Clement <monsieurp@gentoo.org>2018-03-04 23:09:15 +0100
commit182518efd200f5e9ceec8ac52071228fb672cd8d (patch)
tree252d7966047186ff71cea329b878a05f43ac245d /net-analyzer
parentgames-util/pyfa: version bump to 1.35.1. (diff)
downloadgentoo-182518efd200f5e9ceec8ac52071228fb672cd8d.tar.gz
gentoo-182518efd200f5e9ceec8ac52071228fb672cd8d.tar.bz2
gentoo-182518efd200f5e9ceec8ac52071228fb672cd8d.zip
net-analyzer/speedtest-cli: remove unused patch.
Closes: https://github.com/gentoo/gentoo/pull/7209
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/speedtest-cli/files/speedtest-cli-0.3.4-fix-unicode-py3.patch36
1 files changed, 0 insertions, 36 deletions
diff --git a/net-analyzer/speedtest-cli/files/speedtest-cli-0.3.4-fix-unicode-py3.patch b/net-analyzer/speedtest-cli/files/speedtest-cli-0.3.4-fix-unicode-py3.patch
deleted file mode 100644
index 2bd809f9bf67..000000000000
--- a/net-analyzer/speedtest-cli/files/speedtest-cli-0.3.4-fix-unicode-py3.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-diff --git a/speedtest_cli.py b/speedtest_cli.py
-index d93d5c3..930e42b 100755
---- a/speedtest_cli.py
-+++ b/speedtest_cli.py
-@@ -108,6 +108,8 @@ except ImportError:
- def write(data):
- if not isinstance(data, basestring):
- data = str(data)
-+ if isinstance(data, unicode):
-+ data = data.encode('utf-8', 'ignore')
- fp.write(data)
-
- want_unicode = False
-@@ -635,7 +637,7 @@ def speedtest():
- line = ('%(id)4s) %(sponsor)s (%(name)s, %(country)s) '
- '[%(d)0.2f km]' % server)
- serverList.append(line)
-- print_('\n'.join(serverList).encode('utf-8', 'ignore'))
-+ print_('\n'.join(serverList))
- sys.exit(0)
- else:
- servers = closestServers(config['client'])
-@@ -703,8 +705,8 @@ def speedtest():
- best = getBestServer(servers)
-
- if not args.simple:
-- print_(('Hosted by %(sponsor)s (%(name)s) [%(d)0.2f km]: '
-- '%(latency)s ms' % best).encode('utf-8', 'ignore'))
-+ print_('Hosted by %(sponsor)s (%(name)s) [%(d)0.2f km]: '
-+ '%(latency)s ms' % best)
- else:
- print_('Ping: %(latency)s ms' % best)
-
---
-2.7.1
-