-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CLN: Share code between _BytesTarFile and _BytesZipFile #47153
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
Conversation
doc/source/whatsnew/v1.5.0.rst
Outdated
@@ -814,6 +814,7 @@ I/O | |||
- Bug in :func:`read_excel` when reading a ``.ods`` file with newlines between xml elements (:issue:`45598`) | |||
- Bug in :func:`read_parquet` when ``engine="fastparquet"`` where the file was not closed on error (:issue:`46555`) | |||
- :meth:`to_html` now excludes the ``border`` attribute from ``<table>`` elements when ``border`` keyword is set to ``False``. | |||
- Most I/O methods do no longer suppress ``OSError`` and ``ValueError`` when closing file handles (:issue:`47136`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see #47136 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it should go for 1.4, I can make a PR just for 1.4. Literally just removing the try-catch (1.4 doesn't have the problematic tar support; and the cleanup doesn't need to be part of 1.4 either).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prob worth a targeted patch for 1.4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
opened #47160. Will move the whatsnew to 1.4.3 in this PR to keep the PRs in sync.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#47160 should be merged first
Will submit a bug-fix after this PR is merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok let's merge this, then do the appropriate backport (also prob need a whats new for 1.5 / different one for 1.4.3)
can you add some minimal testing for this & whatsnew note |
It fixed a bug in the not-yet-released tar feature. Does this need a whatsnew "even better tar support ;)"? Will add a test. |
right the note is about the propagating closing errors (don't need anything for changes on unrejeased) |
I changed this PR to still catch the error (if used within |
should probably update title. |
@twoertwein can you do this and then merge when ready. |
…7153) * CLN: do not suppress errors when closing file handles * more cleanups * move to 1.4.3 * only cleanup * add test case
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.Needs some more work (test case + whatsnew) but want to first check whether the CI is happy.
_BytesTarFile
caused ValueErrors (due to inheriting from two IO classes?).Would also like to further clean up
_BytesTarFile
and_BytesZipFile
but that might be a separate PR.