diff options
author | Mathew Robinson <chasinglogic@gmail.com> | 2019-02-19 10:50:57 -0500 |
---|---|---|
committer | Mathew Robinson <chasinglogic@gmail.com> | 2019-04-08 14:08:49 -0400 |
commit | 8dd6d4755734ed37c1b98dfdefce3ca6bc65f1f6 (patch) | |
tree | 69e936c4953cbead2e3bae2690157c5fe75e709d /buildscripts/combine_reports.py | |
parent | c600aa9d7423eca8151daf626e2799d9a6c7b31c (diff) | |
download | mongo-8dd6d4755734ed37c1b98dfdefce3ca6bc65f1f6.tar.gz |
SERVER-32295 Support Python 3
Diffstat (limited to 'buildscripts/combine_reports.py')
-rwxr-xr-x | buildscripts/combine_reports.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/buildscripts/combine_reports.py b/buildscripts/combine_reports.py index 45fc0bcf38b..8245b3afb8f 100755 --- a/buildscripts/combine_reports.py +++ b/buildscripts/combine_reports.py @@ -1,8 +1,8 @@ #!/usr/bin/env python """Combine JSON report files used in Evergreen.""" -from __future__ import absolute_import -from __future__ import print_function + + import errno import json @@ -45,7 +45,7 @@ def check_error(input_count, output_count): if (not input_count) and (not output_count): raise ValueError("None of the input file(s) or output file exists") - elif input_count and output_count: + if input_count and output_count: raise ValueError("Both input file and output files exist") @@ -53,10 +53,11 @@ def main(): """Execute Main program.""" usage = "usage: %prog [options] report1.json report2.json ..." parser = OptionParser(description=__doc__, usage=usage) - parser.add_option("-o", "--output-file", dest="outfile", default="-", - help=("If '-', then the combined report file is written to stdout." - " Any other value is treated as the output file name. By default," - " output is written to stdout.")) + parser.add_option( + "-o", "--output-file", dest="outfile", default="-", + help=("If '-', then the combined report file is written to stdout." + " Any other value is treated as the output file name. By default," + " output is written to stdout.")) parser.add_option("-x", "--no-report-exit", dest="report_exit", default=True, action="store_false", help="Do not exit with a non-zero code if any test in the report fails.") |