FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-51067: Extract `_read_local_file_header()` as a module-level function by danny0838 · Pull Request #152139 · python/cpython · GitHub

Repository navigation

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

Merged
StanFromIreland merged 1 commit into
python:mainfrom
danny0838:gh-51067-5
Jun 25, 2026
Merged

StanFromIreland merged 1 commit into
python:mainfrom
danny0838:gh-51067-5

Conversation

danny0838 commented Jun 25, 2026 •
edited by bedevere-app Bot
Loading

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.

StanFromIreland left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

StanFromIreland added skip news type-refactor Code refactoring (with no changes in behavior) labels Jun 25, 2026
StanFromIreland merged commit 2b3ea68 into python:main Jun 25, 2026
143 of 147 checks passed

Copy link
Copy Markdown
Member

Merged, thanks.

danny0838 deleted the gh-51067-5 branch June 28, 2026 03:14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news type-refactor Code refactoring (with no changes in behavior)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL