gawseed/algorithm/dns.py
def dns_label_count(rows, args):
    """Returns the number of labels in a given domain (eg: www.example.com = 3)"""
    label = rows[args[0]]
    parts = label.split(".")
    # deal with www.exmaple.com. with a trailing dot
    if parts[-1] == "":
        return (str(len(parts)-1),'')
    return (str(len(parts)),'')
Returns the number of labels in a given domain (eg: www.example.com = 3)
Returns the number of labels in a given domain
Returns the number of labels in a given domain
def dns_label_count(rows, args):
    label = rows[args[0]]
    parts = label.split(".")
    if parts[-1] == "":
        return (str(len(parts)-1),'')
    return (str(len(parts)),'')
def dns_label_count ( rows , args ) : label = rows [ args [ 0 ] ] parts = label . split ( "." ) if parts [ - 1 ] == "" : return ( str ( len ( parts ) - 1 ) , '' ) return ( str ( len ( parts ) ) , '' )
Returns the number of labels in a given domain (eg: www.example.com = 3)
Returns the number of labels in a given domain ( eg : www . example . com = 3 )
"""Returns the number of labels in a given domain (eg: www.example.com = 3)""" # deal with www.exmaple.com. with a trailing dot
rows
args