bpo-39683: 2to3 fix_exitfunc suggests duplicated import of atexit module by phsilva · Pull Request #18654 · python/cpython · GitHub
Skip to content

bpo-39683: 2to3 fix_exitfunc suggests duplicated import of atexit module - #18654

Closed
phsilva wants to merge 1 commit into
python:mainfrom
phsilva:bpo-39683
Closed

phsilva wants to merge 1 commit into
python:mainfrom
phsilva:bpo-39683

Conversation

@phsilva

@phsilva phsilva commented Feb 25, 2020

Copy link
Copy Markdown
Contributor

2to3 fix for sys.exitfunc adds multiple imports when sys.exitfunc
is present multiple times.

This patch adds a check for already existing 'import atexit' and
do not add multiple imports.

https://bugs.python.org/issue39683

@codecov

codecov Bot commented Feb 25, 2020

Copy link
Copy Markdown

Comment thread Misc/NEWS.d/next/Tools-Demos/2020-02-25-01-08-58.bpo-39683.-fbPik.rst Outdated
2to3 fix for sys.exitfunc adds multiple import when sys.exitfunc
is present multiple times.

This patch adds a check for already existing 'import atexit' and
do not add multiple imports.
@iritkatriel

iritkatriel commented Oct 20, 2021

Copy link
Copy Markdown
Member

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.

5 participants