@@ -57,9 +57,10 @@ def generate_codecs_and_support_functions(self):
5757 definitions = ""
5858
5959 # Record
60- new_declarations , new_definitions = (
61- self ._generate_record_codec_and_to_string_functions ()
62- )
60+ (
61+ new_declarations ,
62+ new_definitions ,
63+ ) = self ._generate_record_codec_and_to_string_functions ()
6364 declarations += new_declarations
6465 definitions += new_definitions
6566
@@ -72,9 +73,10 @@ def generate_codecs_and_support_functions(self):
7273 definitions += new_definitions
7374
7475 # Enumerations
75- all_msg_types_enumeration_type , msg_type_enumeration_types = (
76- self ._create_enumeration_of_all_msg_types ()
77- )
76+ (
77+ all_msg_types_enumeration_type ,
78+ msg_type_enumeration_types ,
79+ ) = self ._create_enumeration_of_all_msg_types ()
7880 if all_msg_types_enumeration_type is not None :
7981 declarations += self ._template .all_msg_types_enumeration_type_declaration .substitute (
8082 identifier = all_msg_types_enumeration_type .identifier ,
@@ -89,16 +91,20 @@ def generate_codecs_and_support_functions(self):
8991 type = all_msg_types_enumeration_type .identifier
9092 )
9193
92- new_declarations , new_definitions = self ._generate_enumeration_codec_and_to_string_functions (
94+ (
95+ new_declarations ,
96+ new_definitions ,
97+ ) = self ._generate_enumeration_codec_and_to_string_functions (
9398 all_msg_types_enumeration_type , msg_type_enumeration_types
9499 )
95100 declarations += new_declarations
96101 definitions += new_definitions
97102
98103 # Arrays
99- new_declarations , new_definitions = (
100- self ._generate_array_codec_and_to_string_functions ()
101- )
104+ (
105+ new_declarations ,
106+ new_definitions ,
107+ ) = self ._generate_array_codec_and_to_string_functions ()
102108 declarations += new_declarations
103109 definitions += new_definitions
104110
@@ -110,9 +116,10 @@ def _generate_record_codec_and_to_string_functions(self):
110116 declarations = ""
111117 definitions = ""
112118 for record in self .record_types :
113- new_declarations , new_definitions = (
114- record .generate_codecs_and_support_functions ()
115- )
119+ (
120+ new_declarations ,
121+ new_definitions ,
122+ ) = record .generate_codecs_and_support_functions ()
116123 declarations += new_declarations
117124 definitions += new_definitions
118125 return declarations , definitions
@@ -123,9 +130,10 @@ def _generate_array_codec_and_to_string_functions(self):
123130 declarations = ""
124131 definitions = ""
125132 for array in self .array_types :
126- new_declarations , new_definitions = (
127- array .generate_codecs_and_support_functions ()
128- )
133+ (
134+ new_declarations ,
135+ new_definitions ,
136+ ) = array .generate_codecs_and_support_functions ()
129137 declarations += new_declarations
130138 definitions += new_definitions
131139
@@ -182,9 +190,10 @@ def _generate_enumeration_codec_and_to_string_functions(
182190 else :
183191 offset = 0
184192
185- new_declarations , new_definitions = enum .generate_codecs_and_support_functions (
186- offset
187- )
193+ (
194+ new_declarations ,
195+ new_definitions ,
196+ ) = enum .generate_codecs_and_support_functions (offset )
188197 declarations += new_declarations
189198 definitions += new_definitions
190199
0 commit comments