Fix flake8-detected errors.

This commit is contained in:
Andrey Rakhmatullin 2019-11-14 15:24:37 +05:00
parent dd367438fa
commit e291460db6
5 changed files with 3 additions and 5 deletions

View File

@ -3,7 +3,6 @@ import signal
import logging
import warnings
import sys
from twisted.internet import reactor, defer
from zope.interface.verify import verifyClass, DoesNotImplement

View File

@ -4,7 +4,6 @@ Item Exporters are used to export/serialize items into different formats.
import csv
import io
import sys
import pprint
import marshal
import six

View File

@ -166,7 +166,7 @@ class WrappedRequest(object):
def get_header(self, name, default=None):
return to_unicode(self.request.headers.get(name, default),
errors='replace')
errors='replace')
def header_items(self):
return [

View File

@ -4,6 +4,8 @@ This module defines the Link object used in Link extractors.
For actual link extractors implementation see scrapy.linkextractors, or
its documentation in: docs/topics/link-extractors.rst
"""
class Link(object):
"""Link objects represent an extracted link by the LinkExtractor."""

View File

@ -1,7 +1,5 @@
from __future__ import print_function
import sys
from testfixtures import LogCapture
from twisted.trial import unittest
from twisted.python.failure import Failure