There was an error while loading. Please reload this page.
1 parent 6c4fc34 commit b483319Copy full SHA for b483319
1 file changed
gitlab
@@ -131,13 +131,7 @@ def usage():
131
if gitlab.GitlabObject in getmro(o) and o != gitlab.GitlabObject:
132
classes.append(o)
133
134
- def s(a, b):
135
- if a.__name__ < b.__name__:
136
- return -1
137
- elif a.__name__ > b.__name__:
138
- return 1
139
-
140
- classes.sort(cmp=s)
+ classes.sort(key=lambda x: x.__name__)
141
for cls in classes:
142
print(" %s" % clsToWhat(cls))
143
0 commit comments