mirror of https://github.com/scrapy/scrapy.git
Fix flake8-detected errors.
This commit is contained in:
parent
dd367438fa
commit
e291460db6
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 [
|
||||
|
|
|
|||
|
|
@ -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."""
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue