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:
parent
e201878b93
commit
faa67443fe
File diff suppressed because it is too large
Load Diff
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user