10000 gh-88233: zipfile: refactor _strip_extra by jaraco · Pull Request #102083 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-88233: zipfile: refactor _strip_extra #102083

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

Closed
wants to merge 15 commits into from
Closed
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
Reflow comment to 72 characters per PEP 8.
  • Loading branch information
jaraco committed Feb 20, 2023
commit 6f42280e47f8d7c9141d6b890aa1c422d2762fe9
6 changes: 3 additions & 3 deletions Lib/test/test_zipfile/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -3011,9 +3011,9 @@ def test_cli_with_metadata_encoding_extract(self):


class StripExtraTests(unittest.TestCase):
# Note: all of the "z" characters are technically invalid, but up to 3 bytes
# at the end of the extra will be passed through as they are too short to
# encode a valid extra.
# Note: all of the "z" characters are technically invalid, but up
# to 3 bytes at the end of the extra will be passed through as they
# are too short to encode a valid extra.
def test_no_data(self):
s = struct.Struct("<HH")
a = s.pack(1, 0) # 1=zip64 extra signature
Expand Down
0