Esempio n. 1
0
 def _decode(self, obj, ctx, path):
     if not self._validate(obj, ctx, path):
         raise construct.ValidationError(
             'Unsupported LSB version: {}'.format(obj))
     return obj
Esempio n. 2
0
 def _decode(self, obj, ctx, path):
     if not self._validate(obj, ctx, path):
         raise construct.ValidationError(f"Unsupported LPM version: {obj}")
     return obj
Esempio n. 3
0
 def _decode(self, obj, ctx, path):
     if not self._validate(obj, ctx, path):
         raise construct.ValidationError(
             "Unsupported LiveMaker archive version: {}".format(obj))
     return obj