def read_file(self, cfgparser, file):
if hasattr(file, '<STR_LIT>'):<EOL><INDENT>if sys.version_info >= (<NUM_LIT:3>, <NUM_LIT:2>):<EOL><INDENT>cfgparser.read_file(file)  <EOL><DEDENT>else:<EOL><INDENT>cfgparser.readfp(file)  <EOL><DEDENT><DEDENT>else:<EOL><INDENT>cfgparser.read(file)<EOL><DEDENT>
Read configuration from file.