Skip to content

gh-133656: Remove unused import in Lib/zipimport.py - #140325

Merged
brettcannon merged 3 commits into
python:mainfrom
yihong0618:hy/drop_useless_code_in_zipimport
Oct 20, 2025
Merged

brettcannon merged 3 commits into
python:mainfrom
yihong0618:hy/drop_useless_code_in_zipimport

Conversation

@yihong0618

@yihong0618 yihong0618 commented Oct 19, 2025 •

Copy link
Copy Markdown
Contributor

also drop the import and maybe a tiny performance up(

can skip news

@StanFromIreland

Copy link
Copy Markdown
Member

Last usage was removed in 5c6937a

@StanFromIreland 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.

On lines 13 and 14 we have two commented out imports that exist since the module's Python re-write. I think we can remove them too.

Signed-off-by: yihong0618 <[email protected]>
@yihong0618

Copy link
Copy Markdown
Contributor Author

On lines 13 and 14 we have two commented out imports that exist since the module's Python re-write. I think we can remove them too.

thanks and deleted

@StanFromIreland StanFromIreland changed the title gh-140324: drop useless code in zipimport gh-133656: drop useless code in zipimport Oct 19, 2025
@StanFromIreland StanFromIreland changed the title gh-133656: drop useless code in zipimport gh-133656: Remove unused import in Lib/zipimport.py Oct 19, 2025
@brettcannon
brettcannon enabled auto-merge (squash) October 20, 2025 19:17
@brettcannon
brettcannon disabled auto-merge October 20, 2025 19:17
@brettcannon
brettcannon enabled auto-merge (squash) October 20, 2025 19:17
@brettcannon
brettcannon merged commit d467f24 into python:main Oct 20, 2025
43 checks passed
@brettcannon

Copy link
Copy Markdown
Member

Thanks!

StanFromIreland pushed a commit to StanFromIreland/cpython that referenced this pull request Dec 6, 2025
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.

3 participants