mirror of https://github.com/scrapy/scrapy.git
uses ScrapyDeprecationWarning instead of silenced PendingDeprecationWarning
This commit is contained in:
parent
c75f1fe46a
commit
935b1da8c2
|
|
@ -14,6 +14,7 @@ from xml.sax.saxutils import XMLGenerator
|
|||
from scrapy.utils.serialize import ScrapyJSONEncoder
|
||||
from scrapy.utils.python import to_bytes, to_unicode, to_native_str, is_listlike
|
||||
from scrapy.item import BaseItem
|
||||
from scrapy.exceptions import ScrapyDeprecationWarning
|
||||
import warnings
|
||||
|
||||
|
||||
|
|
@ -252,7 +253,7 @@ class PythonItemExporter(BaseItemExporter):
|
|||
if self.binary:
|
||||
warnings.warn(
|
||||
"PythonItemExporter will drop support for binary export in the future",
|
||||
PendingDeprecationWarning)
|
||||
ScrapyDeprecationWarning)
|
||||
|
||||
def serialize_field(self, field, name, value):
|
||||
serializer = field.get('serializer', self._serialize_value)
|
||||
|
|
|
|||
Loading…
Reference in New Issue