From b381429ceb7c5669d81100fb4ffdb9bf8e264b42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20No=C3=A9?= Date: Mon, 8 Jul 2024 14:00:29 +0200 Subject: [PATCH] Official support for Python 3.12 --- CHANGES.txt | 1 + dwca/read.py | 1 + 2 files changed, 2 insertions(+) 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?")