Skip to content
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

Adjust logging lock handling for Python 3.13 #15

Merged
merged 3 commits into from
Jan 22, 2025

Conversation

cjwatson
Copy link
Contributor

@cjwatson cjwatson commented Dec 8, 2024

python/cpython#109462 removed logging._acquireLock. Fortunately, python/cpython#3385 simplified lock creation so that with logging._lock: is sufficient; that PR made it into Python 3.7, which is already pastescript's minimum Python requirement.

(I know about pastescript being on life support; but it still seems to be used by some of the OpenStack packages in Debian, so from a Debian point of view I guess we're still stuck with it for now.)

python/cpython#109462 removed
`logging._acquireLock`.  Fortunately,
python/cpython#3385 simplified lock creation so
that `with logging._lock:` is sufficient; that PR made it into Python
3.7, which is already pastescript's minimum Python requirement.
@cdent
Copy link
Collaborator

cdent commented Jan 14, 2025

Thanks for this, forgot to come back to it in the end of year chaos. Will merge it after making some fixes to the GitHub workflows.

@cdent cdent merged commit b4490a7 into pasteorg:master Jan 22, 2025
6 checks passed
@cjwatson cjwatson deleted the py313-logging-lock branch January 22, 2025 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants