From 2fb5a51fa3ac276efc7121ec9de91f092a986104 Mon Sep 17 00:00:00 2001 From: Bouke Haarsma Date: Tue, 15 Oct 2013 22:36:49 +0200 Subject: Fixed #18659 -- Deprecated request.REQUEST and MergeDict Thanks Aymeric Augustin for the suggestion. --- django/utils/datastructures.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'django/utils') diff --git a/django/utils/datastructures.py b/django/utils/datastructures.py index 2f60c29cb0..fe0fc164e9 100644 --- a/django/utils/datastructures.py +++ b/django/utils/datastructures.py @@ -12,6 +12,8 @@ class MergeDict(object): first occurrence will be used. """ def __init__(self, *dicts): + warnings.warn('`MergeDict` is deprecated, use `dict.update()` ' + 'instead.', PendingDeprecationWarning, 2) self.dicts = dicts def __bool__(self): -- cgit v1.3