Beispiel #1
0
 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
Beispiel #2
0
 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