Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Adding tarfile.extractall() plugin with examples#549

Merged
ericwb merged 22 commits intoPyCQA:mainfrom
yilmi:tarfile
Jul 11, 2022
Merged

Adding tarfile.extractall() plugin with examples#549
ericwb merged 22 commits intoPyCQA:mainfrom
yilmi:tarfile

Conversation

Copy link
Contributor

yilmi commented Nov 5, 2019 *
edited by ericwb
Loading

I ran the following tests with tox:

tox -e py27
tox -e py35
tox -e docs
tox -e cover

All tests were successful, documentation properly generated.

Closes #207

ericwb requested changes Dec 11, 2020
Copy link
Member

ericwb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From https://docs.python.org/3/library/tarfile.html#tarfile.TarFile.extract, it appears tarfile.extract() has the same issue.

Comment on lines 3 to 13
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
Copy link
Member

ericwb Dec 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use SPDX short hand form of license header..

Copy link
Member

ericwb Jul 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.

- https://docs.python.org/3/library/tarfile.html#tarfile.TarFile.extractall
- https://docs.python.org/3/library/tarfile.html#tarfile.TarInfo

.. versionadded:: 1.6.3
Copy link
Member

ericwb Dec 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bump to 1.6.4 or next

ericwb reviewed Jul 11, 2022
Comment on lines 3 to 13
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
Copy link
Member

ericwb Jul 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.

ericwb reviewed Jul 11, 2022
ericwb reviewed Jul 11, 2022
ericwb reviewed Jul 11, 2022
ericwb reviewed Jul 11, 2022
ericwb reviewed Jul 11, 2022
ericwb requested review from lukehinds and sigmavirus24 as code owners July 11, 2022 16:47
ericwb reviewed Jul 11, 2022
ericwb reviewed Jul 11, 2022
ericwb reviewed Jul 11, 2022
ericwb reviewed Jul 11, 2022
ericwb reviewed Jul 11, 2022
ericwb reviewed Jul 11, 2022
ericwb reviewed Jul 11, 2022
ericwb reviewed Jul 11, 2022
ericwb reviewed Jul 11, 2022
ericwb reviewed Jul 11, 2022
ericwb reviewed Jul 11, 2022
ericwb reviewed Jul 11, 2022
ericwb reviewed Jul 11, 2022
ericwb reviewed Jul 11, 2022
ericwb approved these changes Jul 11, 2022
Copy link
Member

ericwb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

yilmi reacted with heart emoji
ericwb merged commit caae4ee into PyCQA:main Jul 11, 2022
yilmi deleted the tarfile branch July 11, 2022 19:24
behnazh-w mentioned this pull request Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

ericwb ericwb approved these changes

lukehinds Awaiting requested review from lukehinds lukehinds is a code owner

sigmavirus24 Awaiting requested review from sigmavirus24 sigmavirus24 is a code owner

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Checks for tarfile abuse would be useful

3 participants