def toByteCode(self): bytes = super(self.__class__, self).toByteCode() coded_modules = [codec.VALUE_TO_UNITCODE_MAP[i] for i in self.modules] modmask = utils.unmerge_bytes(utils.numbers_to_mask(coded_modules), 2) bytes.extend(modmask) return bytes
def toByteCode(self): bytes = super(self.__class__, self).toByteCode() flagmask = utils.unmerge_bytes(utils.numbers_to_mask(self.flags), 2) bytes.extend(flagmask) return bytes