mirror of https://github.com/scrapy/scrapy.git
Change condition to raise deprecation warning
This commit is contained in:
parent
62f3e22481
commit
d7074d86d2
|
|
@ -245,7 +245,7 @@ class MergeDict(object):
|
|||
first occurrence will be used.
|
||||
"""
|
||||
def __init__(self, *dicts):
|
||||
if six.PY3:
|
||||
if not six.PY2:
|
||||
warnings.warn(
|
||||
"scrapy.utils.datatypes.MergeDict is deprecated in favor "
|
||||
"of collections.ChainMap (introduced in Python 3.3)",
|
||||
|
|
|
|||
Loading…
Reference in New Issue