From f00b04a3ed87d85c77c7b7deed93fdb1df32758a Mon Sep 17 00:00:00 2001 From: Oleksandr Liemieshko Date: Thu, 15 Dec 2016 19:49:21 -0800 Subject: [PATCH] Fix: flake8 warnings Change-Id: I6e36654d53117327c91f4819afa517ccb13d8952 --- timmy/cli.py | 1 + timmy/flock.py | 1 + timmy/nodes.py | 1 + 3 files changed, 3 insertions(+) diff --git a/timmy/cli.py b/timmy/cli.py index f1e500e..98f5fed 100755 --- a/timmy/cli.py +++ b/timmy/cli.py @@ -386,5 +386,6 @@ def main(argv=None): not args.quiet, not conf['offline']]): print('Archives available in "%s".' % nm.conf['archive_dir']) + if __name__ == '__main__': sys.exit(main(sys.argv)) diff --git a/timmy/flock.py b/timmy/flock.py index 4291e95..f3d9f07 100644 --- a/timmy/flock.py +++ b/timmy/flock.py @@ -96,6 +96,7 @@ class FLock: # lockfile can be erased and everything still works normally. pass + # Test main routine if __name__ == '__main__': import time diff --git a/timmy/nodes.py b/timmy/nodes.py index edd3388..ef57254 100644 --- a/timmy/nodes.py +++ b/timmy/nodes.py @@ -955,5 +955,6 @@ class NodeManager(object): def main(argv=None): return 0 + if __name__ == '__main__': sys.exit(main(sys.argv))