-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-109461: Update logging module lock acquisition to use context manager #109462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
vstinner
merged 41 commits into
python:main
from
dcollison:gh-109461-update-logging-lock-acquisition
Sep 27, 2023
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
02c1d58
Updated logging __init__.py to acquire its module lock using a contex…
dcollison f319ab0
📜🤖 Added by blurb_it.
blurb-it[bot] 6664c4c
Merge branch 'main' into gh-109461-update-logging-lock-acquisition
dcollison fd635b2
Updated to leave the existing API alone and added a new method _acqui…
dcollison 749b678
Merge remote-tracking branch 'origin/gh-109461-update-logging-lock-ac…
dcollison e5ad43b
Updated acquireLock usages to acquireModuleLock
dcollison 0a2bb5f
Removed unnecessary changes
dcollison ea33592
Merge branch 'main' into gh-109461-update-logging-lock-acquisition
dcollison af9f7d1
Merge branch 'main' into gh-109461-update-logging-lock-acquisition
dcollison 4f2d1c1
Updated _acquireModuleLock() to _get_lock() which gets the lock's con…
dcollison dc7df1e
Merge remote-tracking branch 'origin/gh-109461-update-logging-lock-ac…
dcollison 892a5cb
Updated comments
dcollison a30d5da
Merge branch 'main' into gh-109461-update-logging-lock-acquisition
dcollison cf7a2e6
Updated blurb
dcollison 0a53f3b
Merge remote-tracking branch 'origin/gh-109461-update-logging-lock-ac…
dcollison 2760cc5
Removed unused import
dcollison b5e6651
Merge branch 'main' into gh-109461-update-logging-lock-acquisition
dcollison 7f3b28a
Updated __init__.py to remove _get_lock() and "if _lock" checks since…
dcollison 09c9133
Changed "with logging._get_lock():" to "with logging._lock:"
dcollison 9f3607e
Changed "with logging._get_lock()" to "with logging._lock:"
dcollison b15e4bf
Changed "with logging._get_lock():" to "with logging._lock:"
dcollison a0c50bf
Update __init__.py
dcollison 9d0675b
Update Misc/NEWS.d/next/Library/2023-09-15-17-12-53.gh-issue-109461.V…
dcollison a298a7b
Update __init__.py
dcollison 1b14732
Merge branch 'main' into gh-109461-update-logging-lock-acquisition
dcollison 1979a75
Updated handlers to use a context manager for lock acquisition
dcollison 3fd33ef
Updated handlers to use a context manager for lock acquisition
dcollison 22c868e
Copying _lock to local variable
dcollison 335f814
Updated another lock acquisition
dcollison afa79ef
Update Misc/NEWS.d/next/Library/2023-09-15-17-12-53.gh-issue-109461.V…
dcollison 600a126
Merge branch 'main' into gh-109461-update-logging-lock-acquisition
dcollison 5e92580
Someone managed to duplicate a line in the docstring
dcollison 20e46f6
Merge remote-tracking branch 'origin/gh-109461-update-logging-lock-ac…
dcollison c73e2b7
Someone managed to duplicate a line in the docstring
dcollison a9472c7
Reverted Handler acquire() and release() as it actually needs the Non…
dcollison df75801
Merge branch 'main' into gh-109461-update-logging-lock-acquisition
dcollison bca5ae8
Added comment to _acquireLock() to justify the try-except block aroun…
dcollison 1ba5979
Renamed "_acquireLock" to "_prepareFork" and "_releaseLock" to "_afte…
dcollison c1a9651
Merge branch 'main' into gh-109461-update-logging-lock-acquisition
dcollison efd7462
Merge branch 'main' into gh-109461-update-logging-lock-acquisition
dcollison 797ae0d
Merge branch 'main' into gh-109461-update-logging-lock-acquisition
AA-Turner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.