diff options
| author | Lars-Dominik Braun <lars@6xq.net> | 2018-12-02 10:37:32 +0100 | 
|---|---|---|
| committer | Lars-Dominik Braun <lars@6xq.net> | 2018-12-02 10:37:32 +0100 | 
| commit | 248b8031ad445611d6bfd5a21914fc3c98d754e8 (patch) | |
| tree | 36d532e9ec85b33aefe7e194d6467385813637f5 | |
| parent | 2d5c19105228e47df42218fd6b8e0b41d3ba394f (diff) | |
| download | crocoite-248b8031ad445611d6bfd5a21914fc3c98d754e8.tar.gz crocoite-248b8031ad445611d6bfd5a21914fc3c98d754e8.tar.bz2 crocoite-248b8031ad445611d6bfd5a21914fc3c98d754e8.zip | |
controller: Remove unused argument
Has been replaced by handler a while ago.
| -rw-r--r-- | crocoite/cli.py | 2 | ||||
| -rw-r--r-- | crocoite/controller.py | 7 | 
2 files changed, 4 insertions, 5 deletions
| diff --git a/crocoite/cli.py b/crocoite/cli.py index f34424e..c3c41a4 100644 --- a/crocoite/cli.py +++ b/crocoite/cli.py @@ -66,7 +66,7 @@ def single ():          logger.connect (WarcHandlerConsumer (warcHandler))          handler = [StatsHandler (), LogHandler (logger), warcHandler]          b = list (map (lambda x: behavior.availableMap[x], args.enabledBehaviorNames)) -        controller = SinglePageController (args.url, fd, settings=settings, +        controller = SinglePageController (url=args.url, settings=settings,                  service=service, handler=handler, behavior=b, logger=logger)          try:              loop = asyncio.get_event_loop() diff --git a/crocoite/controller.py b/crocoite/controller.py index 5f4fe10..8b25d1f 100644 --- a/crocoite/controller.py +++ b/crocoite/controller.py @@ -104,19 +104,18 @@ class ControllerStart:  class SinglePageController:      """ -    Archive a single page url to file output. +    Archive a single page url.      Dispatches between producer (site loader and behavior scripts) and consumer      (stats, warc writer).      """ -    __slots__ = ('url', 'output', 'service', 'behavior', 'settings', 'logger', 'handler') +    __slots__ = ('url', 'service', 'behavior', 'settings', 'logger', 'handler') -    def __init__ (self, url, output, logger, \ +    def __init__ (self, url, logger, \              service, behavior=cbehavior.available, \              settings=defaultSettings, handler=[]):          self.url = url -        self.output = output          self.service = service          self.behavior = behavior          self.settings = settings | 
