Translate model=True in exclude to lower_model and upper_model

This commit is contained in:
ines 2017-06-02 18:37:07 +02:00
parent cef547a9f0
commit fdd0923be4

View File

@ -675,6 +675,10 @@ cdef class Parser:
'moves': lambda: self.moves.to_bytes(strings=False),
'cfg': lambda: ujson.dumps(self.cfg)
}
if 'model' in exclude:
exclude['lower_model'] = True
exclude['upper_model'] = True
exclude.pop('model')
return util.to_bytes(serializers, exclude)
def from_bytes(self, bytes_data, **exclude):