def _open_archive(path):
if path.endswith('<STR_LIT>'):<EOL><INDENT>return zipfile.ZipFile(path, '<STR_LIT:r>')<EOL><DEDENT>return tarfile.open(path, '<STR_LIT:r>')<EOL>
:param path:
    A unicode string of the filesystem path to the archive

:return:
    An archive object