Skip to content

Commit 935b1da

Browse files
committed
uses ScrapyDeprecationWarning instead of silenced PendingDeprecationWarning
1 parent c75f1fe commit 935b1da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scrapy/exporters.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from scrapy.utils.serialize import ScrapyJSONEncoder
1515
from scrapy.utils.python import to_bytes, to_unicode, to_native_str, is_listlike
1616
from scrapy.item import BaseItem
17+
from scrapy.exceptions import ScrapyDeprecationWarning
1718
import warnings
1819

1920

@@ -252,7 +253,7 @@ def _configure(self, options, dont_fail=False):
252253
if self.binary:
253254
warnings.warn(
254255
"PythonItemExporter will drop support for binary export in the future",
255-
PendingDeprecationWarning)
256+
ScrapyDeprecationWarning)
256257

257258
def serialize_field(self, field, name, value):
258259
serializer = field.get('serializer', self._serialize_value)

0 commit comments

Comments
 (0)