diff options
author | yenatch <yenatch@gmail.com> | 2013-11-08 22:49:25 -0500 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2013-11-08 22:49:25 -0500 |
commit | e7385d6f04b20aa4faa5c068238bd3a227164bc4 (patch) | |
tree | dac8cf7997ebc475a25efbc49dc4cbce5c8aca48 | |
parent | 85fa5a06c012270cea3347ac19b052f7f8678975 (diff) |
audio: less ambiguous tuple unpacking
-rw-r--r-- | pokemontools/audio.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pokemontools/audio.py b/pokemontools/audio.py index 8217cfb..e427ec8 100644 --- a/pokemontools/audio.py +++ b/pokemontools/audio.py @@ -182,8 +182,8 @@ class Channel: for i, (address, asm, last_address) in enumerate(output): if ':' in asm: # dont print labels for empty chunks - for (x, y, z) in output[i:]: - if ':' not in y: + for (address_, asm_, last_address_) in output[i:]: + if ':' not in asm_: text += '\n' + asm + '\n' break else: @@ -336,7 +336,7 @@ def dump_sound_clump(origin, names, base_label='Sound_'): def export_sound_clump(origin, names, path, base_label='Sound_'): output = dump_sound_clump(origin, names, base_label) with open(path, 'w') as out: - out.write('\n'.join(y for x, y, z in output)) + out.write('\n'.join(asm for address, asm, last_address in output)) def dump_crystal_music(): |