Keep EDID pnp IDs sorted

In Python 3.6 the sorting comes for free, since dict keeps the insertion
order, but adding sorted means older Python versions behave the same.

Change-Id: I3ac4c0f5c3739cb8b284c8a02c4a96b5f41b2286
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@liri.io>
This commit is contained in:
Frederik Gladhorn 2018-08-01 22:34:50 +02:00
parent e201878b93
commit faa67443fe
2 changed files with 2221 additions and 2221 deletions

File diff suppressed because it is too large Load Diff

View File

@ -129,6 +129,6 @@ for line in data.split('\n'):
print(copyright)
print(notice)
print(header % (max_vendor_length + 1))
for pnp_id in vendors.keys():
for pnp_id in sorted(vendors.keys()):
print(' { "%s", "%s" },' % (pnp_id, vendors[pnp_id]))
print(footer)