Address style issues

This commit is contained in:
Adrián Chaves 2022-06-30 16:57:17 +02:00
parent 983aa66687
commit 4759c68193
2 changed files with 1 additions and 3 deletions

View File

@ -61,7 +61,6 @@ _mime_overrides = get_data('scrapy', 'mime.types') or b''
_MIME_TYPES.readfp(StringIO(_mime_overrides.decode()))
def _is_html_mime_type(mime_type):
if mime_type in {
b'application/xhtml+xml',

View File

@ -1,5 +1,4 @@
import unittest
from warnings import catch_warnings
import pytest
@ -10,7 +9,7 @@ from scrapy.http import (
TextResponse,
XmlResponse,
)
from scrapy.responsetypes import responsetypes, ResponseTypes
from scrapy.responsetypes import responsetypes
from .test_utils_response import (
POST_XTRACTMIME_SCENARIOS,
PRE_XTRACTMIME_SCENARIOS,