debian/bin/buildcheck.py: Use sorted function.

svn path=/dists/sid/linux-2.6/; revision=15439
This commit is contained in:
Bastian Blank 2010-03-21 12:29:59 +00:00
parent d59af98a3b
commit 9995fd5f3f
1 changed files with 3 additions and 9 deletions

View File

@ -73,23 +73,17 @@ class CheckAbi(object):
if add: if add:
out.write("\nAdded symbols:\n") out.write("\nAdded symbols:\n")
t = list(add) for name in sorted(add):
t.sort()
for name in t:
symbols[name].write(out, name in ignore) symbols[name].write(out, name in ignore)
if change: if change:
out.write("\nChanged symbols:\n") out.write("\nChanged symbols:\n")
t = list(change) for name in sorted(change):
t.sort()
for name in t:
symbols[name].write(out, name in ignore) symbols[name].write(out, name in ignore)
if remove: if remove:
out.write("\nRemoved symbols:\n") out.write("\nRemoved symbols:\n")
t = list(remove) for name in sorted(remove):
t.sort()
for name in t:
symbols[name].write(out, name in ignore) symbols[name].write(out, name in ignore)
return ret return ret