File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 7
7
8
8
import copy
9
9
import six
10
+ import warnings
10
11
from collections import OrderedDict
11
12
13
+ from scrapy .exceptions import ScrapyDeprecationWarning
14
+
12
15
13
16
class MultiValueDictKeyError (KeyError ):
14
- pass
17
+ def __init__ (self , * args , ** kwargs ):
18
+ warnings .warn (
19
+ "scrapy.utils.datatypes.MultiValueDictKeyError is deprecated "
20
+ "and will be removed in future releases." ,
21
+ category = ScrapyDeprecationWarning ,
22
+ stacklevel = 2
23
+ )
24
+ super (MultiValueDictKeyError , self ).__init__ (* args , ** kwargs )
25
+
15
26
16
27
class MultiValueDict (dict ):
17
28
"""
@@ -31,6 +42,10 @@ class MultiValueDict(dict):
31
42
single name-value pairs.
32
43
"""
33
44
def __init__ (self , key_to_list_mapping = ()):
45
+ warnings .warn ("scrapy.utils.datatypes.MultiValueDict is deprecated "
46
+ "and will be removed in future releases." ,
47
+ category = ScrapyDeprecationWarning ,
48
+ stacklevel = 2 )
34
49
dict .__init__ (self , key_to_list_mapping )
35
50
36
51
def __repr__ (self ):
You can’t perform that action at this time.
0 commit comments