From: David Kerkeslager Date: Thu, 18 Jul 2019 03:17:37 +0000 (-0400) Subject: Use flatten() X-Git-Url: https://code.kerkeslager.com/?a=commitdiff_plain;h=2f3fbc1c9c663ec40f5d5a2d6abd09ad33ec63f6;p=fur Use flatten() --- diff --git a/crossplatform_ir_generation.py b/crossplatform_ir_generation.py index 92b2adb..4f3a266 100644 --- a/crossplatform_ir_generation.py +++ b/crossplatform_ir_generation.py @@ -194,15 +194,7 @@ def generate(converted): return CIRProgram( entry_list=( CIRLabel(label='__main__'), - ) + tuple( - referenced_entry - for referenced_entry_list in referenced_entry_list_list - for referenced_entry in referenced_entry_list - ) + tuple( - instruction - for instruction_list in instruction_list_list - for instruction in instruction_list - ), + ) + flatten(referenced_entry_list_list) + flatten(instruction_list_list), ) def output(program):