Skip to content

Commit

Permalink
Merge pull request #78 from cdbennett/fix_python3_sort_types
Browse files Browse the repository at this point in the history
Use name as sort key to fix Python 3 TypeError
  • Loading branch information
Gauvain Pocentek committed Dec 24, 2015
2 parents acc1511 + 363b75e commit 6f1fd7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gitlab/cli.py
Expand Up @@ -21,6 +21,7 @@
from __future__ import absolute_import
import argparse
import inspect
import operator
import re
import sys

Expand Down Expand Up @@ -256,7 +257,7 @@ def main():
classes.append(cls)
except AttributeError:
pass
classes.sort()
classes.sort(key=operator.attrgetter("__name__"))

for cls in classes:
arg_name = clsToWhat(cls)
Expand Down

0 comments on commit 6f1fd7e

Please sign in to comment.