def load_children(self, f):
while True:<EOL><INDENT>line = self.readline(f)<EOL>if line[<NUM_LIT:0>] == '<STR_LIT:&>':<EOL><INDENT>if line[<NUM_LIT:1>:].startswith("<STR_LIT>"):<EOL><INDENT>check_name = line[<NUM_LIT:4>:].strip().upper()<EOL>if check_name != self.__name:<EOL><INDENT>raise FileFormatError("<STR_LIT>", f.tell())<EOL><DEDENT>break<EOL><DEDENT>else:<EOL><INDENT>section = CP2KSection()<EOL>section.load(f, line)<EOL>self.append(section)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>keyword = CP2KKeyword()<EOL>keyword.load(line)<EOL>self.append(keyword)<EOL><DEDENT><DEDENT>
Load the children of this section from a file-like object