This allows the object methods to be properly inherited and called via
`super(..)`, addressing breakage with python 2.x, introduced in
cfcc093606e747a5d250787012bac0b149c60d6d.
Fixes #1042.
Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
# Holds everything that makes a struct
-class Struct:
+class Struct(object):
def __init__(self, name):
self._name = name
self._entries = []
)
-class Entry:
+class Entry(object):
def __init__(self, ent_type, name, tag):
self._type = ent_type
self._name = name
return entities
-class CCodeGenerator:
+class CCodeGenerator(object):
def __init__(self):
pass
return EntryArray(entry)
-class CommandLine:
+class CommandLine(object):
def __init__(self, argv=None):
"""Initialize a command-line to launch event_rpcgen, as if
from a command-line with CommandLine(sys.argv). If you're