mirror of https://github.com/scrapy/scrapy.git
Fix style errors
This commit is contained in:
parent
0c1e547697
commit
40f4b262d2
|
|
@ -680,21 +680,23 @@ class FeedExportTestBase(ABC, unittest.TestCase):
|
|||
break
|
||||
return result
|
||||
|
||||
|
||||
class InstrumentedFeedSlot(_FeedSlot):
|
||||
"""Instrumented _FeedSlot subclass for keeping track of calls to
|
||||
start_exporting and finish_exporting."""
|
||||
def start_exporting(self):
|
||||
self.update_listener('start')
|
||||
super().start_exporting()
|
||||
|
||||
|
||||
def finish_exporting(self):
|
||||
self.update_listener('finish')
|
||||
super().start_exporting()
|
||||
|
||||
|
||||
@classmethod
|
||||
def subscribe__listener(cls, listener):
|
||||
cls.update_listener = listener.update
|
||||
|
||||
|
||||
class IsExportingListener:
|
||||
"""When subscribed to InstrumentedFeedSlot, keeps track of when
|
||||
a call to start_exporting has been made without a closing call to
|
||||
|
|
|
|||
Loading…
Reference in New Issue