diff options
| author | Karthikeyan Singaravelan <tir.karthi@gmail.com> | 2021-04-13 06:05:12 +0000 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-05-04 12:07:18 +0200 |
| commit | f9f6bd63c98dc2f01412887f4a98dbfdab363fdf (patch) | |
| tree | 5acb0eb07822bd678c96ef01ae19580b98731258 /django/utils/autoreload.py | |
| parent | 623c8cd8f41a99f22d39b264f7eaf7244417000b (diff) | |
Refs #32074 -- Removed usage of deprecated Thread.setDaemon().
Thread.setDaemon() was deprecated in Python 3.10 and will be removed in
Python 3.12.
Diffstat (limited to 'django/utils/autoreload.py')
| -rw-r--r-- | django/utils/autoreload.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/autoreload.py b/django/utils/autoreload.py index 3847252632..9bd2cff066 100644 --- a/django/utils/autoreload.py +++ b/django/utils/autoreload.py @@ -610,7 +610,7 @@ def start_django(reloader, main_func, *args, **kwargs): main_func = check_errors(main_func) django_main_thread = threading.Thread(target=main_func, args=args, kwargs=kwargs, name='django-main-thread') - django_main_thread.setDaemon(True) + django_main_thread.daemon = True django_main_thread.start() while not reloader.should_stop: |
