diff options
Diffstat (limited to 'buildscripts/prune_check.py')
-rw-r--r-- | buildscripts/prune_check.py | 11 |
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) |