| Index: build/android/pylib/utils/findbugs.py
|
| diff --git a/build/android/pylib/utils/findbugs.py b/build/android/pylib/utils/findbugs.py
|
| index 44731113cf9ff12fce34cdbff1d30a3e0abad679..8dde7f6fb1ea7545d3b5e2c541e54841cea5df17 100644
|
| --- a/build/android/pylib/utils/findbugs.py
|
| +++ b/build/android/pylib/utils/findbugs.py
|
| @@ -62,7 +62,7 @@ def _DiffKnownWarnings(current_warnings_set, known_bugs_file):
|
| def _Rebaseline(current_warnings_set, known_bugs_file):
|
| with file(known_bugs_file, 'w') as known_bugs:
|
| for warning in sorted(current_warnings_set):
|
| - print >> known_bugs, warning
|
| + print >>known_bugs, warning
|
| return 0
|
|
|
|
|
| @@ -132,7 +132,7 @@ def _Run(exclude, known_bugs, classes_to_analyze, auxiliary_classes,
|
|
|
| proc = subprocess.Popen(shlex.split(cmd),
|
| stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
| - out, _err = proc.communicate()
|
| + out, err = proc.communicate()
|
| current_warnings_set = set(_StripLineNumbers(filter(None, out.splitlines())))
|
|
|
| if rebaseline:
|
| @@ -220,7 +220,7 @@ def GetCommonParser():
|
| return parser
|
|
|
|
|
| -def main():
|
| +def main(argv):
|
| parser = GetCommonParser()
|
| options, _ = parser.parse_args()
|
|
|
| @@ -228,4 +228,4 @@ def main():
|
|
|
|
|
| if __name__ == '__main__':
|
| - sys.exit(main())
|
| + sys.exit(main(sys.argv))
|
|
|