def remove_class(text):
<EOL>lines = text.split("<STR_LIT:\n>")<EOL>ret = []<EOL>for line in lines:<EOL><INDENT>tokens = tokenize_line(line)<EOL>tokens_upper = [t.upper() for t in tokens]<EOL>if "<STR_LIT>" in tokens_upper:<EOL><INDENT>tokens.remove("<STR_LIT>")<EOL><DEDENT>elif "<STR_LIT>" in tokens_upper:<EOL><INDENT>tokens.remove("<STR_LIT>")<EOL><DEDENT>elif "<STR_LIT>" in tokens_upper:<EOL><INDENT>tokens.remove("<STR_LIT>")<EOL><DEDENT>elif "<STR_LIT>" in tokens_upper:<EOL><INDENT>tokens.remove("<STR_LIT>")<EOL><DEDENT>ret.append(serialize(tokens))<EOL><DEDENT>return "<STR_LIT:\n>".join(ret)<EOL>
Remove the CLASS from each DNS record, if present.
The only class that gets used today (for all intents
and purposes) is 'IN'.