remove Message.Version

This commit is contained in:
Mike Fährmann
2025-12-05 22:09:21 +01:00
parent 968597a302
commit d1de48e7b2
5 changed files with 18 additions and 18 deletions

View File

@@ -8,7 +8,7 @@
"""noop extractor"""
from .common import Extractor, Message
from .common import Extractor
class NoopExtractor(Extractor):
@@ -17,11 +17,9 @@ class NoopExtractor(Extractor):
example = "noop"
def items(self):
# yield *something* to prevent a 'No results' message
yield Message.Version, 1
# Save cookies manually, since it happens automatically only after
# extended extractor initialization, i.e. Message.Directory, which
# itself might cause some unintended effects.
if self.cookies:
self.cookies_store()
return iter(((-1, "", None),))