Skip to content

Commit

Permalink
Official support for Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
niconoe committed Jul 8, 2024
1 parent 4619680 commit b381429
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -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).

Expand Down
1 change: 1 addition & 0 deletions dwca/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -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?")
Expand Down

0 comments on commit b381429

Please sign in to comment.