From 00c1eb127bc742ed823d520edc78954c0407c4d8 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Tue, 13 Aug 2013 14:18:59 +0200 Subject: respect 80 line limit --- bin/updater.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/updater.py b/bin/updater.py index bcf9f4f79..34ce1bfe0 100644 --- a/bin/updater.py +++ b/bin/updater.py @@ -79,7 +79,8 @@ class UpdateThread(threading.Thread): class Updater: - def __init__(self, base_url, thread_num, interval, user, password, timeout, runonce): + def __init__(self, base_url, thread_num, interval, user, password, timeout, + runonce): self.thread_num = thread_num self.interval = interval self.base_url = base_url @@ -132,13 +133,15 @@ class Updater: def main(): parser = argparse.ArgumentParser() parser.add_argument('--runonce', - help='Run update only once, DO NOT use this in a cron job, only recommended for testing', action='store_true') + help='Run update only once, DO NOT use this in a cron job, only \ + recommended for testing', action='store_true') parser.add_argument('--threads', help='How many feeds should be fetched in paralell, defaults to 10', default=10, type=int) parser.add_argument('--timeout', - help='Maximum number of seconds for updating a feed, defaults to 5 minutes', + help='Maximum number of seconds for updating a feed, \ + defaults to 5 minutes', default=5*60, type=int) parser.add_argument('--interval', -- cgit v1.2.3