-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
gh-107396: tarfiles: set self.exception before _init_read_gz() #107485
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
gh-107396: tarfiles: set self.exception before _init_read_gz() #107485
Conversation
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
b7eaea9
to
5656fe0
Compare
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
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(). closes: python#107396
4de3480
to
25ac1e4
Compare
@ethanfurman Want me to try making the backports once this is merged? |
Hopefully bots will be able to do the backports. |
Thanks @balmeida-nokia for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
…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>
GH-108207 is a backport of this pull request to the 3.12 branch. |
GH-108208 is a backport of this pull request to the 3.11 branch. |
…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>
…GH-107485) (#108207) gh-107396: tarfiles: set self.exception before _init_read_gz() (GH-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>
…GH-107485) (GH-108208) gh-107396: tarfiles: set self.exception before _init_read_gz() (GH-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>
In the stack call of: _init_read_gz()
a try;except exists that uses
self.exception
, so it needs to be set before calling _init_read_gz().closes: #107396
AttributeError: '_Stream' object has no attribute 'exception'
while trying to open tgz file #107396