File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -121,17 +121,18 @@ def get_headers_diff(files, opts):
121
121
else :
122
122
header_fields = opts .header_fields .split (',' )
123
123
124
- output = {}
124
+ output = []
125
125
126
126
for f in header_fields :
127
127
val = diff_header_fields (f , header_list )
128
128
129
129
if val :
130
- output [f ] = val
130
+ loader = {f : val }
131
+ output .append (loader )
131
132
132
133
return output
133
134
else :
134
- return {}
135
+ return []
135
136
136
137
137
138
def get_data_md5sums (files ):
@@ -182,10 +183,11 @@ def main():
182
183
print ()
183
184
184
185
for x in header_diff :
185
- print ("{:<11}" .format (x ), end = "" )
186
+ for key , value in x .items ():
187
+ print ("{:<11}" .format (key ), end = "" )
186
188
187
- for e in header_diff [ x ] :
188
- print ("{:<45}" .format (e ), end = "" )
189
+ for item in value :
190
+ print ("{:<45}" .format (str ( item ) ), end = "" )
189
191
190
192
print ()
191
193
You can’t perform that action at this time.
0 commit comments