def open(filename, mode="<STR_LIT:rb>", format = None):
if format == "<STR_LIT>" or format == None:<EOL><INDENT>format = detect_format(filename)<EOL><DEDENT>if format == "<STR_LIT>":<EOL><INDENT>return WARCFile(filename, mode)<EOL><DEDENT>elif format == "<STR_LIT>":<EOL><INDENT>return ARCFile(filename, mode)<EOL><DEDENT>else:<EOL><INDENT>raise IOError("<STR_LIT>"%format)<EOL><DEDENT>
Shorthand for WARCFile(filename, mode).

    Auto detects file and opens it.