

def factory(*args_, **kwargs_):
    if Layer7ProtocolType.subclass:
        return Layer7ProtocolType.subclass(*args_, **kwargs_)
    else:
        return Layer7ProtocolType(*args_, **kwargs_)

dataset/ETHPy150Open CybOXProject/python-cybox/cybox/bindings/network_connection_object.py Layer7ProtocolType.factory/original