diff options
Diffstat (limited to 'module/remote/create_ttypes.py')
-rw-r--r-- | module/remote/create_ttypes.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/module/remote/create_ttypes.py b/module/remote/create_ttypes.py index ab74a3441..fc4d75d32 100644 --- a/module/remote/create_ttypes.py +++ b/module/remote/create_ttypes.py @@ -111,6 +111,12 @@ from ttypes import *\n name = klass.__name__ base = "Exception" if issubclass(klass, ttypes.TExceptionBase) else "BaseObject" f.write("class %s(%s):\n" % (name, base)) + + # No attributes, don't write further info + if not klass.__slots__: + f.write("\tpass\n\n") + continue + f.write("\t__slots__ = %s\n\n" % klass.__slots__) dev.write("\t'%s' : [" % name) |