deprecate unused and untested scrapy.utils.datatypes.SiteNode

This commit is contained in:
Mikhail Korobov 2016-01-26 13:56:16 +05:00
parent a7b86137d0
commit 7070dae48d
1 changed files with 8 additions and 0 deletions

View File

@ -137,10 +137,18 @@ class MultiValueDict(dict):
for key, value in six.iteritems(kwargs):
self.setlistdefault(key, []).append(value)
class SiteNode(object):
"""Class to represent a site node (page, image or any other file)"""
def __init__(self, url):
warnings.warn(
"scrapy.utils.datatypes.SiteNode is deprecated "
"and will be removed in future releases.",
category=ScrapyDeprecationWarning,
stacklevel=2
)
self.url = url
self.itemnames = []
self.children = []