diff options
| author | 2012-10-09 22:09:16 +0200 | |
|---|---|---|
| committer | 2012-10-09 22:09:16 +0200 | |
| commit | 49c4088ceb02da735d549014aaa9cba8c729ba54 (patch) | |
| tree | 9ae70f02f4c548b7e7d2409eef89505cbd1924db /module/remote/create_ttypes.py | |
| parent | added nodejs as usuable js engine (diff) | |
| download | pyload-49c4088ceb02da735d549014aaa9cba8c729ba54.tar.xz | |
modified Api: filter downloads by state
Diffstat (limited to 'module/remote/create_ttypes.py')
| -rw-r--r-- | module/remote/create_ttypes.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/module/remote/create_ttypes.py b/module/remote/create_ttypes.py index ec4f07a7d..a9a93bde7 100644 --- a/module/remote/create_ttypes.py +++ b/module/remote/create_ttypes.py @@ -52,7 +52,7 @@ class BaseObject(object):          name = enum.__name__          f.write("class %s:\n" % name) -        for attr in dir(enum): +        for attr in sorted(dir(enum), key=lambda x: getattr(enum, x)):              if attr.startswith("_") or attr in ("read", "write"): continue              f.write("\t%s = %s\n" % (attr, getattr(enum, attr))) | 
