From ea1882d3120c7c7612d30508e7a8421903cacb06 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Wed, 19 May 2021 18:12:45 +0100 Subject: [PATCH] loadout.py: Pre-empt the 'dangling commas' brainfart when this gets refactored/cleaned --- loadout.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/loadout.py b/loadout.py index d3a08743..92c9ff3d 100644 --- a/loadout.py +++ b/loadout.py @@ -32,6 +32,14 @@ def export(data, filename=None): querytime = config.get_int('querytime', default=int(time.time())) # Write + # + # When this is refactored into multi-line CHECK IT WORKS, avoiding the + # brainfart we had with dangling commas in commodity.py:export() !!! + # filename = join(config.get_str('outdir'), '%s.%s.txt' % (ship, time.strftime('%Y-%m-%dT%H.%M.%S', time.localtime(querytime)))) + # + # When this is refactored into multi-line CHECK IT WORKS, avoiding the + # brainfart we had with dangling commas in commodity.py:export() !!! + # with open(filename, 'wt') as h: h.write(string)