blockstack_zones/parse_zone_file.py
def remove_comments(text):
    """
    Remove comments from a zonefile
    """
    ret = []
    lines = text.split("\n")
    for line in lines:
        if len(line) == 0:
            continue 

        line = serialize(tokenize_line(line))
        ret.append(line)

    return "\n".join(ret)
def remove_comments(text):
    ret = []
    lines = text.split("\n")
    for line in lines:
        if len(line) == 0:
            continue 

        line = serialize(tokenize_line(line))
        ret.append(line)

    return "\n".join(ret)
def remove_comments ( text ) : ret = [ ] lines = text . split ( "\n" ) for line in lines : if len ( line ) == 0 : continue line = serialize ( tokenize_line ( line ) ) ret . append ( line ) return "\n" . join ( ret )
Remove comments from a zonefile
Remove comments from a zonefile