From fe3a6c11f40822d559b9882ae8d5210b067348de Mon Sep 17 00:00:00 2001 From: A_D Date: Mon, 13 Jul 2020 06:08:04 +0200 Subject: [PATCH] replace list literals with tuples Tuples ensure that this isnt changed at runtime --- collate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/collate.py b/collate.py index 4a06d35c..9431711c 100755 --- a/collate.py +++ b/collate.py @@ -73,7 +73,7 @@ def addmodules(data): outfile = 'outfitting.csv' modules = {} - fields = ['id', 'symbol', 'category', 'name', 'mount', 'guidance', 'ship', 'class', 'rating', 'entitlement'] + fields = ('id', 'symbol', 'category', 'name', 'mount', 'guidance', 'ship', 'class', 'rating', 'entitlement') # slurp existing if isfile(outfile): @@ -134,7 +134,7 @@ def addships(data): shipfile = 'shipyard.csv' ships = {} - fields = ['id', 'symbol', 'name'] + fields = ('id', 'symbol', 'name') # slurp existing if isfile(shipfile):