From 1bdb15456e5a20a0cad7832e3202c90eee4beba0 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Sat, 3 Aug 2013 14:55:58 -0500 Subject: fix the bss/wram section default The default section needs to include a list of labels (even if the list is empty) because downstream code assumes that the section contains a key called "labels" that has a value associated with a list. --- wram.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'wram.py') diff --git a/wram.py b/wram.py index 5305afa..e380ca3 100644 --- a/wram.py +++ b/wram.py @@ -9,7 +9,9 @@ path = os.path.dirname(os.path.abspath(__file__)) def read_bss_sections(bss): sections = [] - section = {} + section = { + "labels": [], + } address = None if type(bss) is not list: bss = bss.split('\n') for line in bss: -- cgit v1.2.3