Change condition to raise deprecation warning

This commit is contained in:
Eugenio Lacuesta 2019-07-16 14:13:45 -03:00
parent 62f3e22481
commit d7074d86d2
No known key found for this signature in database
GPG Key ID: DA3EF2D0913E9810
1 changed files with 1 additions and 1 deletions

View File

@ -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)",