

def _transform_object(self, obj):
    zout = ZMapTransformOutput()
    wrapped = Transformable(obj)
    dnp3 = wrapped['data']['dnp3']
    if (not dnp3['is_dnp3'].resolve()):
        raise errors.IgnoreObject()
    out = {
        'support': True,
        'raw_response': dnp3['raw_response'].resolve(),
    }
    zout.transformed = out
    return zout

dataset/ETHPy150Open zmap/ztag/ztag/transforms/dnp3.py DNP3Transform._transform_object/original