summaryrefslogtreecommitdiff
path: root/wram.py
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-08-03 14:55:58 -0500
committerBryan Bishop <kanzure@gmail.com>2013-08-03 14:55:58 -0500
commit1bdb15456e5a20a0cad7832e3202c90eee4beba0 (patch)
tree14eb1ba8b7f50c093897e21d6145d9f2975ff6e3 /wram.py
parent2bbe5da4b61aafb9c3b9855c709c3bf48d95ff18 (diff)
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.
Diffstat (limited to 'wram.py')
-rw-r--r--wram.py4
1 files changed, 3 insertions, 1 deletions
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: