Skip to content

Commit

Permalink
pep8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
F483 committed Mar 12, 2016
1 parent 91d69a2 commit 99a3daf
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions dataserv_client/bandwidth_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
# under the License.

import os
import re
import sys
import math
import signal
Expand Down Expand Up @@ -76,19 +75,6 @@
except ImportError:
from urllib.parse import urlparse

try:
from urlparse import parse_qs
except ImportError:
try:
from urllib.parse import parse_qs
except ImportError:
from cgi import parse_qs

try:
from hashlib import md5
except ImportError:
from md5 import md5

try:
import builtins
except ImportError:
Expand Down Expand Up @@ -551,13 +537,6 @@ def speedtest():

signal.signal(signal.SIGINT, ctrl_c)

description = (
'Command line interface for testing internet bandwidth using '
'speedtest.net.\n'
'------------------------------------------------------------'
'--------------\n'
'https://github.com/sivel/speedtest-cli')

socket.setdefaulttimeout(10)

# Pre-cache the user agent string
Expand Down Expand Up @@ -625,6 +604,6 @@ def speed_test_cached():

return results


if __name__ == "__main__":
print(speed_test_cached())
# vim:ts=4:sw=4:expandtab

0 comments on commit 99a3daf

Please sign in to comment.