Skip to content

馃悰 FIX: Use tar data filter when extracting - #22

Draft
Mirochill wants to merge 1 commit into
aiidateam:mainfrom
Mirochill:fix-tar-extract-filter-warning
Draft

馃悰 FIX: Use tar data filter when extracting#22
Mirochill wants to merge 1 commit into
aiidateam:mainfrom
Mirochill:fix-tar-extract-filter-warning

Conversation

@Mirochill

Copy link
Copy Markdown

Summary

  • pass filter=data to TarFile.extract() in TarPath.extract_tree() when tarfile extraction filters are available
  • keep the existing extract call on older Python versions that do not expose tarfile.data_filter
  • add a regression test that checks the filter keyword on supported Python versions

Fixes #21.

Validation

  • git diff --check
  • Not run locally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DeprecationWarning on Python>=3.12 for tar.extract method

1 participant