def read_file(self, filename):
self.pack = {}<EOL>f = open(filename, '<STR_LIT:r>')<EOL>for line in f:<EOL><INDENT>line = line.strip()<EOL>if (len(line) == <NUM_LIT:0>) or (line[<NUM_LIT:0>] == '<STR_LIT:#>'):<EOL><INDENT>continue<EOL><DEDENT>try:<EOL><INDENT>self._parse_modulus(line)<EOL><DEDENT>except:<EOL><INDENT>continue<EOL><DEDENT><DEDENT>f.close()<EOL>
@raise IOError: passed from any file operations that fail.