Scrapy, a fast high-level web crawling & scraping framework for Python.
aesthetic fixes
Kshitij Sharma983b7ddf2e39
diff --git a/scrapy/utils/python.py b/scrapy/utils/python.pyindex 4756b07b6..59f1b8371 100644--- a/scrapy/utils/python.py+++ b/scrapy/utils/python.py@@ -6,13 +6,13 @@ import gcimport inspectimport reimport sys-import weakrefimport warnings+import weakreffrom functools import partial, wrapsfrom itertools import chain-from scrapy.utils.decorators import deprecatedfrom scrapy.exceptions import ScrapyDeprecationWarning+from scrapy.utils.decorators import deprecateddef flatten(x):@@ -280,7 +280,7 @@ def equal_attributes(obj1, obj2, attributes):class WeakKeyCache:def __init__(self, default_factory):- warnings.warn("Call to deprecated Class WeakKeyCache", category=ScrapyDeprecationWarning, stacklevel=2)+ warnings.warn("The WeakKeyCache class is deprecated", category=ScrapyDeprecationWarning, stacklevel=2)self.default_factory = default_factoryself._weakdict = weakref.WeakKeyDictionary()