Refactoring for PEP8

This commit is contained in:
Alexandr K 2017-05-13 16:53:24 +03:00
parent 0ed780bb4d
commit a0ccd6a166
1 changed files with 5 additions and 3 deletions

View File

@ -1269,7 +1269,8 @@ def parse_args():
parser.add_argument('--list', action='store_true',
help='Display a list of speedtest.net servers '
'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)
parser.add_argument('--mini', help='URL of the Speedtest Mini server')
parser.add_argument('--source', help='Source IP address to bind to')
@ -1441,7 +1442,8 @@ def shell():
break
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'],
quiet)