From d7074d86d26c936c6907dea7c550a4f251667d8b Mon Sep 17 00:00:00 2001 From: Eugenio Lacuesta Date: Tue, 16 Jul 2019 14:13:45 -0300 Subject: [PATCH] Change condition to raise deprecation warning --- scrapy/utils/datatypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapy/utils/datatypes.py b/scrapy/utils/datatypes.py index fbc41f760..231234e3d 100644 --- a/scrapy/utils/datatypes.py +++ b/scrapy/utils/datatypes.py @@ -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)",