diff --git a/.gitignore b/.gitignore index 4acbbda6..582b9a67 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ ve .idea *.iml *.swp +whisper.egg-info/ diff --git a/bin/whisper-fill.py b/bin/whisper-fill.py index aac9ef3d..84eccb68 100755 --- a/bin/whisper-fill.py +++ b/bin/whisper-fill.py @@ -122,27 +122,27 @@ def fill_archives(src, dst, startFrom): def main(): - option_parser = optparse.OptionParser( - usage='%prog [--lock] src dst', - description='copies data from src in dst, if missing') - option_parser.add_option( - '--lock', help='Lock whisper files', - default=False, action='store_true') - (options, args) = option_parser.parse_args() + option_parser = optparse.OptionParser( + usage='%prog [--lock] src dst', + description='copies data from src in dst, if missing') + option_parser.add_option( + '--lock', help='Lock whisper files', + default=False, action='store_true') + (options, args) = option_parser.parse_args() - if len(args) != 2: - option_parser.print_help() - sys.exit(1) + if len(args) != 2: + option_parser.print_help() + sys.exit(1) - if options.lock is True and whisper.CAN_LOCK: - whisper.LOCK = True + if options.lock is True and whisper.CAN_LOCK: + whisper.LOCK = True - src = args[0] - dst = args[1] - startFrom = time.time() + src = args[0] + dst = args[1] + startFrom = time.time() - fill_archives(src, dst, startFrom) + fill_archives(src, dst, startFrom) if __name__ == "__main__": - main() + main()