From 36148ad8bbdb94162b2926f4700d935ee4dc5994 Mon Sep 17 00:00:00 2001 From: Jonathan Abrahams Date: Mon, 26 Mar 2018 11:25:04 -0400 Subject: SERVER-23312 Format Python files with yapf --- buildscripts/collect_resource_info.py | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'buildscripts/collect_resource_info.py') diff --git a/buildscripts/collect_resource_info.py b/buildscripts/collect_resource_info.py index 56bbb073fca..211d00e3235 100755 --- a/buildscripts/collect_resource_info.py +++ b/buildscripts/collect_resource_info.py @@ -1,5 +1,4 @@ #!/usr/bin/env python - """ Collect system resource information on processes running in Evergreen on a given interval. """ @@ -16,29 +15,23 @@ import time from bson.json_util import dumps import requests - # Get relative imports to work when the package is not installed on the PYTHONPATH. if __name__ == "__main__" and __package__ is None: sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from buildscripts.resmokelib import utils - + def main(): usage = "usage: %prog [options]" parser = optparse.OptionParser(description=__doc__, usage=usage) - parser.add_option("-i", "--interval", - dest="interval", - default=5, - type="int", + parser.add_option("-i", "--interval", dest="interval", default=5, type="int", help="Collect system resource information every seconds. " - "Default is every 5 seconds.") - parser.add_option("-o", "--output-file", - dest="outfile", - default="-", + "Default is every 5 seconds.") + parser.add_option("-o", "--output-file", dest="outfile", default="-", help="If '-', then the file is written to stdout." - " Any other value is treated as the output file name. By default," - " output is written to stdout.") + " Any other value is treated as the output file name. By default," + " output is written to stdout.") (options, _) = parser.parse_args() -- cgit v1.2.1