aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2019-09-15 17:45:06 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2019-09-15 17:45:06 +0200
commit23609eb945514140f8601107ef04ae9d1dcfdb86 (patch)
tree33a0954af99782579aee139d2fd7a6bb7086447a
parent3682ac4cb420361634b624d014133b54d6015394 (diff)
Put an empty list in list fields in the empty data.HEADmaster
-rw-r--r--lesana/collection.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lesana/collection.py b/lesana/collection.py
index 766617c..464dbde 100644
--- a/lesana/collection.py
+++ b/lesana/collection.py
@@ -56,6 +56,8 @@ class Entry(object):
data += ("{name}: |\n .\n".format(**field))
elif t == 'integer':
data += ("{name}: 0\n".format(**field))
+ elif t == 'list':
+ data += ("{name}: []\n".format(**field))
else:
data += ("{name}: \n".format(**field))
return ruamel.yaml.load(data, Loader=ruamel.yaml.RoundTripLoader)