def update_tracking_terms(self):
import codecs<EOL>with codecs.open(self.filename,"<STR_LIT:r>", encoding='<STR_LIT:utf8>') as input:<EOL><INDENT>lines = input.readlines()<EOL>new_terms = set()<EOL>for line in lines:<EOL><INDENT>line = line.strip()<EOL>if len(line):<EOL><INDENT>new_terms.add(line)<EOL><DEDENT><DEDENT>return set(new_terms)<EOL><DEDENT>
Terms must be one-per-line.
Blank lines will be skipped.