def __load(self, dir, verbose=False):
if type(dir).__name__ == "<STR_LIT:str>":<EOL><INDENT>for f in os.listdir(dir):<EOL><INDENT>name = os.path.splitext(f)[<NUM_LIT:0>]<EOL>self.files[name] = open(os.path.join(dir, f))<EOL><DEDENT><DEDENT>else:<EOL><INDENT>for f in dir:<EOL><INDENT>if type(f).__name__ == "<STR_LIT:str>":<EOL><INDENT>f = open(f)<EOL><DEDENT>name = os.path.splitext(f.name)[<NUM_LIT:0>]<EOL>self.files[name] = f<EOL><DEDENT><DEDENT>
@summary: builds self.files, which is a dictionary of file-handle-like
          objects indexed by name.
@param dir: -if single string we treat as directory of files to load
            -if a list of string, we treat as list of filenames to load
            -if list of anything else, treat as list of file-handle-like
             objects (must have .name attributes)