Skip to content

Commit 409e4b0

Browse files
committed
Use ordered mapping for consistent field order
Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent 7bf44bd commit 409e4b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/attributecode/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1116,7 +1116,7 @@ def dumps(self, mapping_file=False, with_absent=False, with_empty=True):
11161116
# Group the same license information in a list
11171117
license_group = list(zip_longest(license_key, license_name, license_file, license_url))
11181118
for lic_group in license_group:
1119-
lic_dict = {}
1119+
lic_dict = OrderedDict()
11201120
if lic_group[0]:
11211121
lic_dict['key'] = lic_group[0]
11221122
if lic_group[1]:

0 commit comments

Comments
 (0)