diff options
| author | Gauvain Pocentek <gauvain@pocentek.net> | 2015-12-24 08:13:06 +0100 |
|---|---|---|
| committer | Gauvain Pocentek <gauvain@pocentek.net> | 2015-12-24 08:13:06 +0100 |
| commit | 6f1fd7ea8d203b771e32393b5270a6af490b37a8 (patch) | |
| tree | 3fa2f6f94fd713f1f8c93e86d2ef567582e6ec41 /gitlab/cli.py | |
| parent | acc151190e32ddaf9198a10c5b816af2d36c0f19 (diff) | |
| parent | 363b75e73c2b66ab625811accdb9d639fb068675 (diff) | |
| download | gitlab-6f1fd7ea8d203b771e32393b5270a6af490b37a8.tar.gz | |
Merge pull request #78 from cdbennett/fix_python3_sort_types
Use name as sort key to fix Python 3 TypeError
Diffstat (limited to 'gitlab/cli.py')
| -rw-r--r-- | gitlab/cli.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gitlab/cli.py b/gitlab/cli.py index a1109b6..1f82498 100644 --- a/gitlab/cli.py +++ b/gitlab/cli.py @@ -21,6 +21,7 @@ from __future__ import division from __future__ import absolute_import import argparse import inspect +import operator import re import sys @@ -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) |
