Refactoring for PEP8
This commit is contained in:
parent
0ed780bb4d
commit
a0ccd6a166
|
@ -1269,7 +1269,8 @@ def parse_args():
|
||||||
parser.add_argument('--list', action='store_true',
|
parser.add_argument('--list', action='store_true',
|
||||||
help='Display a list of speedtest.net servers '
|
help='Display a list of speedtest.net servers '
|
||||||
'sorted by distance')
|
'sorted by distance')
|
||||||
parser.add_argument('--server', help='Specify a server ID (or city name) to test against',
|
parser.add_argument('--server', help='Specify a server ID (or city name) '
|
||||||
|
'to test against',
|
||||||
type=PARSER_TYPE_STR)
|
type=PARSER_TYPE_STR)
|
||||||
parser.add_argument('--mini', help='URL of the Speedtest Mini server')
|
parser.add_argument('--mini', help='URL of the Speedtest Mini server')
|
||||||
parser.add_argument('--source', help='Source IP address to bind to')
|
parser.add_argument('--source', help='Source IP address to bind to')
|
||||||
|
@ -1441,7 +1442,8 @@ def shell():
|
||||||
break
|
break
|
||||||
|
|
||||||
if not servers:
|
if not servers:
|
||||||
raise SpeedtestCLIError('Server was not found: %s' % args.server)
|
raise SpeedtestCLIError('Server was not found: '
|
||||||
|
'%s' % args.server)
|
||||||
|
|
||||||
printer('Testing from %(isp)s (%(ip)s)...' % speedtest.config['client'],
|
printer('Testing from %(isp)s (%(ip)s)...' % speedtest.config['client'],
|
||||||
quiet)
|
quiet)
|
||||||
|
|
Loading…
Reference in New Issue