summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@jelmer.uk>2018-12-27 01:12:57 +0000
committerGitHub <noreply@github.com>2018-12-27 01:12:57 +0000
commit58c3d364266e7550d3e00e34191eed7df2d36d13 (patch)
treed73003f45f8edaa3fda54bda3e7c73170e677d1d
parent01e54895b5f74bdaee4474dbd18a8c01470701db (diff)
parent24a2465c92368784800562e105c920db0c997870 (diff)
downloadsubunit-git-58c3d364266e7550d3e00e34191eed7df2d36d13.tar.gz
Merge pull request #36 from qinqon/fix_python3_reports
Fix file open for python3
-rw-r--r--python/subunit/filters.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/subunit/filters.py b/python/subunit/filters.py
index 0a0a185..ec7e9f3 100644
--- a/python/subunit/filters.py
+++ b/python/subunit/filters.py
@@ -5,7 +5,7 @@
# license at the users choice. A copy of both licenses are available in the
# project source as Apache-2.0 and BSD. You may not use this file except in
# compliance with one of these two licences.
-#
+#
# Unless required by applicable law or agreed to in writing, software
# distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
@@ -143,7 +143,7 @@ def filter_by_result(result_factory, output_path, passthrough, forward,
if output_path is None:
output_to = sys.stdout
else:
- output_to = file(output_path, 'wb')
+ output_to = open(output_path, 'w')
try:
result = result_factory(output_to)