From 1ef9e6a6f33884188c9885f19d7692b6c1795382 Mon Sep 17 00:00:00 2001 From: David Forbes Date: Wed, 13 Jul 2016 00:23:22 +0100 Subject: [PATCH] Corrected quotes and line lengths --- speedtest_cli.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/speedtest_cli.py b/speedtest_cli.py index 5f6ef45..8536857 100755 --- a/speedtest_cli.py +++ b/speedtest_cli.py @@ -803,10 +803,11 @@ def speedtest(): fresh_file = not os.path.isfile(args.log) try: - log_file = open(args.log, "a") + log_file = open(args.log, 'a') if fresh_file: - log_file.write("Date,download,upload,isp,ip,spons,loc,dist,lat,share\n") - log_file.write("%s\n" % ",".join(log_output)) + log_file.write('Date,download,upload,isp,ip,' + 'spons,loc,dist,lat,share\n') + log_file.write('%s\n' % ','.join(log_output)) except: print_('\nLog file update failed')