/usr/share/pyshared/scrapy/http/common.py is in python-scrapy 0.14.4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 | import warnings
from scrapy.exceptions import ScrapyDeprecationWarning
def deprecated_setter(setter, attrname):
def newsetter(self, value):
c = self.__class__.__name__
warnings.warn("Don't modify %s.%s attribute, use %s.replace() instead" % \
(c, attrname, c), ScrapyDeprecationWarning, stacklevel=2)
return setter(self, value)
return newsetter
|