summaryrefslogtreecommitdiffstats
path: root/module/remote/create_ttypes.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-10-09 22:09:16 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-10-09 22:09:16 +0200
commit49c4088ceb02da735d549014aaa9cba8c729ba54 (patch)
tree9ae70f02f4c548b7e7d2409eef89505cbd1924db /module/remote/create_ttypes.py
parentadded nodejs as usuable js engine (diff)
downloadpyload-49c4088ceb02da735d549014aaa9cba8c729ba54.tar.xz
modified Api: filter downloads by state
Diffstat (limited to 'module/remote/create_ttypes.py')
-rw-r--r--module/remote/create_ttypes.py2
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)))