8000 gh-98108: Add limited pickleability to zipfile.Path by jaraco · Pull Request #98109 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-98108: Add limited pickleability to zipfile.Path #98109

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 8 commits into from
Nov 26, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Synchronize with minor changes found at jaraco/zipp@d9e7f4352d.
  • Loading branch information
jaraco committed Oct 8, 2022
commit 376febec8d0d1a5da180f2a30c6c792c71fb046a
2 changes: 1 addition & 1 deletion Lib/test/test_zipfile/test_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def test_mutability(self, alpharep):
(baz,) = (root / 'bar').iterdir()
assert baz.read_text(encoding="utf-8") == 'baz'

HUGE_ZIPFILE_NUM_ENTRIES = 2 ** 13
HUGE_ZIPFILE_NUM_ENTRIES = 2**13

def huge_zipfile(self):
"""Create a read-only zipfile with a huge number of entries entries."""
Expand Down
5 changes: 4 additions & 1 deletion Lib/zipfile/_path.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import io
import posixpath
import zipfile
import itertools
import contextlib
import pathlib
import zipfile


__all__ = ['Path']


def _parents(path):
Expand Down
0