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

Use Thread.daemon property rather than deprecated Thread.setDaemon #897

Merged

Conversation

jun66j5
Copy link
Contributor

@jun66j5 jun66j5 commented Jul 17, 2024

The following deprecated warning is shown when importing mod_wsgi.server with -Wdefault option. Thread.daemon property is introduced in Python 2.6.

$ /venv/py310/bin/python -Wdefault -c 'from mod_wsgi import server'
/venv/py310/lib/python3.10/site-packages/mod_wsgi/server/__init__.py:1270: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  _thread.setDaemon(True)

@GrahamDumpleton GrahamDumpleton merged commit e9a089e into GrahamDumpleton:develop Aug 8, 2024
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