Revision a9e1819b lib/opcodes_base.py
b/lib/opcodes_base.py | ||
---|---|---|
160 | 160 |
# as OP_ID is dynamically defined |
161 | 161 |
__metaclass__ = _AutoOpParamSlots |
162 | 162 |
|
163 |
def __init__(self, **kwargs): |
|
164 |
outils.ValidatedSlots.__init__(self, **kwargs) |
|
165 |
for key, default, _, _ in self.__class__.GetAllParams(): |
|
166 |
if not hasattr(self, key): |
|
167 |
setattr(self, key, default) |
|
168 |
|
|
163 | 169 |
def __getstate__(self): |
164 | 170 |
"""Generic serializer. |
165 | 171 |
|
Also available in: Unified diff