Skip to content

Commit

Permalink
whisper-fill: fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr1212 authored and deniszh committed Oct 23, 2019
1 parent e4c3f79 commit 986d7da
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ ve
.idea
*.iml
*.swp
whisper.egg-info/
34 changes: 17 additions & 17 deletions bin/whisper-fill.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 986d7da

Please sign in to comment.