Skip to content

gh-51067: Extract _read_local_file_header() as a module-level function#152139

Open
danny0838 wants to merge 1 commit into
python:mainfrom
danny0838:gh-51067-5
Open

gh-51067: Extract _read_local_file_header() as a module-level function#152139
danny0838 wants to merge 1 commit into
python:mainfrom
danny0838:gh-51067-5

Conversation

@danny0838

@danny0838 danny0838 commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Move the duplicate logic for reading and validating local file headers from ZipFile.open() and multiple _Repacker methods into a single shared function. This establishes a single source of truth to ensure behavioral consistency and prevents redundant code.

… function

Move the duplicate logic for reading and validating local file headers
from `ZipFile.open()` and multiple `_Repacker` methods into a single
shared function.  This establishes a single source of truth to ensure
behavioral consistency and prevents redundant code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant