Skip to content

[3.12] gh-107396: tarfiles: set self.exception before _init_read_gz() (GH-107485) #108207

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 21, 2023

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Aug 21, 2023

In the stack call of: _init_read_gz()

_read, tarfile.py:548
read, tarfile.py:526
_init_read_gz, tarfile.py:491

a try;except exists that uses self.exception, so it needs to be set before
calling _init_read_gz().
(cherry picked from commit 37135d2)

Co-authored-by: balmeida-nokia 83089745+balmeida-nokia@users.noreply.github.com

…ythonGH-107485)

In the stack call of: _init_read_gz()
```
_read, tarfile.py:548
read, tarfile.py:526
_init_read_gz, tarfile.py:491
```
a try;except exists that uses `self.exception`, so it needs to be set before
calling _init_read_gz().
(cherry picked from commit 37135d2)

Co-authored-by: balmeida-nokia <83089745+balmeida-nokia@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants