diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-01-13 11:08:32 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-01-14 17:50:04 +0100 |
| commit | 1adcf20385c2856d3655089ff7a0b55b32e5587a (patch) | |
| tree | 1fce2b161679f3647ff27d2a0e6d5de8d4cfe37e /django/dispatch | |
| parent | 4bb30fe5d598a7acd2a3055c5e66224cf42a75e9 (diff) | |
| download | django-1adcf20385c2856d3655089ff7a0b55b32e5587a.tar.gz | |
Refs #31327 -- Removed providing_args argument for Signal per deprecation timeline.
Diffstat (limited to 'django/dispatch')
| -rw-r--r-- | django/dispatch/dispatcher.py | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/django/dispatch/dispatcher.py b/django/dispatch/dispatcher.py index 5ad0659f83..c9d5788fa9 100644 --- a/django/dispatch/dispatcher.py +++ b/django/dispatch/dispatcher.py @@ -1,9 +1,7 @@ import logging import threading -import warnings import weakref -from django.utils.deprecation import RemovedInDjango40Warning from django.utils.inspect import func_accepts_kwargs logger = logging.getLogger('django.dispatch') @@ -30,19 +28,11 @@ class Signal: receivers { receiverkey (id) : weakref(receiver) } """ - def __init__(self, providing_args=None, use_caching=False): + def __init__(self, use_caching=False): """ Create a new signal. """ self.receivers = [] - if providing_args is not None: - warnings.warn( - 'The providing_args argument is deprecated. As it is purely ' - 'documentational, it has no replacement. If you rely on this ' - 'argument as documentation, you can move the text to a code ' - 'comment or docstring.', - RemovedInDjango40Warning, stacklevel=2, - ) self.lock = threading.Lock() self.use_caching = use_caching # For convenience we create empty caches even if they are not used. |
