mirror of
https://gerrit.googlesource.com/git-repo
synced 2025-01-02 16:14:25 +00:00
Use sorted() rather than .sort()
dict.keys() produces a dict_keys object in Python 3, which does not support .sort(). Use sorted() which will give the same outcome. Change-Id: If6b33db07a31995b4e44959209d08d8fb74ae339
This commit is contained in:
parent
666d534636
commit
7446c5954a
@ -872,10 +872,8 @@ class XmlManifest(object):
|
|||||||
fromProjects = self.paths
|
fromProjects = self.paths
|
||||||
toProjects = manifest.paths
|
toProjects = manifest.paths
|
||||||
|
|
||||||
fromKeys = fromProjects.keys()
|
fromKeys = sorted(fromProjects.keys())
|
||||||
fromKeys.sort()
|
toKeys = sorted(toProjects.keys())
|
||||||
toKeys = toProjects.keys()
|
|
||||||
toKeys.sort()
|
|
||||||
|
|
||||||
diff = {'added': [], 'removed': [], 'changed': [], 'unreachable': []}
|
diff = {'added': [], 'removed': [], 'changed': [], 'unreachable': []}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user