diff --git a/CHANGES.txt b/CHANGES.txt index 13d98c2..935249a 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,6 +1,7 @@ Current (unreleased) -------------------- +- Added official support for Python 3.12 - Proper error message when trying to use an unsupported combination of Pandas option and archives with default values (issue #106). diff --git a/dwca/read.py b/dwca/read.py index 0ada17e..c345df9 100644 --- a/dwca/read.py +++ b/dwca/read.py @@ -448,6 +448,7 @@ def _unzip_or_untar(self) -> str: except zipfile.BadZipfile: # Doesn't look like a valid zip, let's see if it's a tar archive (possibly compressed) try: + # TODO: Once we only support Python 3.12+, we should pass the filter="data" argument to extractall() tarfile.open(self.archive_path, 'r:*').extractall(tmp_dir) except tarfile.ReadError: raise InvalidArchive("The archive cannot be read. Is it a .zip or .tgz file?")