summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@qt.io>2018-08-01 22:34:50 +0200
committerFrederik Gladhorn <frederik.gladhorn@qt.io>2018-08-03 18:11:11 +0000
commitfaa67443fed04c4448dc15f7098b9c365a041110 (patch)
tree31706e5784aa57454e9618b7c1918e89a54c6c4a /util
parente201878b936eefc7ebdab9d30198e2584e5b5617 (diff)
downloadqtbase-faa67443fed04c4448dc15f7098b9c365a041110.tar.gz
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>
Diffstat (limited to 'util')
-rwxr-xr-xutil/edid/qedidvendortable.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/edid/qedidvendortable.py b/util/edid/qedidvendortable.py
index bac8417326..7e6fe778b0 100755
--- a/util/edid/qedidvendortable.py
+++ b/util/edid/qedidvendortable.py
@@ -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)