def check_typ(helper, typ):
    """
    check if typ parameter is TCP or UDP
    """
    if typ != "tcp" and typ != "udp":
        helper.exit(summary="Type (-t) must be udp or tcp.", exit_code=unknown, perfdata='')
def check_typ ( helper , typ ) : if typ != "tcp" and typ != "udp" : helper . exit ( summary = "Type (-t) must be udp or tcp." , exit_code = unknown , perfdata = '' )
check if typ parameter is TCP or UDP