Skip to content

logging: use new syntax to check if a handler is not already present in Logger.addHandler#145908

Closed
stephanlachnit wants to merge 1 commit intopython:mainfrom
stephanlachnit:patch-1
Closed

logging: use new syntax to check if a handler is not already present in Logger.addHandler#145908
stephanlachnit wants to merge 1 commit intopython:mainfrom
stephanlachnit:patch-1

Conversation

@stephanlachnit
Copy link

Use x not in y instead of not (x in y)

@stephanlachnit stephanlachnit requested a review from vsajip as a code owner March 13, 2026 12:16
@bedevere-app
Copy link

bedevere-app bot commented Mar 13, 2026

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@python-cla-bot
Copy link

python-cla-bot bot commented Mar 13, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

@picnixz
Copy link
Member

picnixz commented Mar 13, 2026

This is code churn which we don't accept. Sorry. There are lots of "old" code style so it doesn't make sense to just change one line and it also doesn't make sense to have one big refactorization PR.

@picnixz picnixz closed this Mar 13, 2026
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.

2 participants