diff options
-rwxr-xr-x | tools/releasetools/ota_from_target_files.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/releasetools/ota_from_target_files.py b/tools/releasetools/ota_from_target_files.py index 2beabe3..bd34dc9 100755 --- a/tools/releasetools/ota_from_target_files.py +++ b/tools/releasetools/ota_from_target_files.py @@ -152,7 +152,7 @@ OPTIONS.override_prop = False def MostPopularKey(d, default): """Given a dict, return the key corresponding to the largest value. Returns 'default' if the dict is empty.""" - x = list(d.items()) + x = [(v, k) for (k, v) in d.items()] if not x: return default x.sort() |