summaryrefslogtreecommitdiff
path: root/buildscripts/prune_check.py
diff options
context:
space:
mode:
authorJonathan Abrahams <jonathan@mongodb.com>2018-03-26 11:25:04 -0400
committerJonathan Abrahams <jonathan@mongodb.com>2018-03-26 13:04:25 -0400
commit36148ad8bbdb94162b2926f4700d935ee4dc5994 (patch)
tree1d893c4ca0b0afa407f7724c7942dfbf643560af /buildscripts/prune_check.py
parentd62d631f0ca40c5199fdfae2980080ca0cc982b5 (diff)
downloadmongo-36148ad8bbdb94162b2926f4700d935ee4dc5994.tar.gz
SERVER-23312 Format Python files with yapf
Diffstat (limited to 'buildscripts/prune_check.py')
-rw-r--r--buildscripts/prune_check.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/buildscripts/prune_check.py b/buildscripts/prune_check.py
index 8445418505a..570715c4c1f 100644
--- a/buildscripts/prune_check.py
+++ b/buildscripts/prune_check.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python2
-
""" This program stamps the shared scons directory with a timestamp so we can
determine the last prune time and run the prune script on a schedule.
It is meant to be invoked from the shell:
@@ -76,12 +75,14 @@ def check_last_prune_time(args):
# A 0 return code signals our Evergreen task that we should run the prune script.
# Otherwise, return 1 and skip pruning.
if diff.total_seconds() > seconds_since_last_prune:
- print("It has been {0:.2f} seconds ({1:.2f} hours) since last prune."
- .format(diff.total_seconds(), diff.total_seconds()/60/60))
+ print("It has been {0:.2f} seconds ({1:.2f} hours) since last prune.".format(
+ diff.total_seconds(),
+ diff.total_seconds() / 60 / 60))
sys.exit(0)
else:
- print("It has been {0:.2f} seconds ({1:.2f} hours) since last prune."
- .format(diff.total_seconds(), diff.total_seconds()/60/60))
+ print("It has been {0:.2f} seconds ({1:.2f} hours) since last prune.".format(
+ diff.total_seconds(),
+ diff.total_seconds() / 60 / 60))
sys.exit(1)