diff options
author | Quique Llorente <ellorent@redhat.com> | 2018-12-26 14:57:24 +0100 |
---|---|---|
committer | Quique Llorente <ellorent@redhat.com> | 2018-12-26 15:23:41 +0100 |
commit | 24a2465c92368784800562e105c920db0c997870 (patch) | |
tree | d73003f45f8edaa3fda54bda3e7c73170e677d1d /python | |
parent | 01e54895b5f74bdaee4474dbd18a8c01470701db (diff) | |
download | subunit-git-24a2465c92368784800562e105c920db0c997870.tar.gz |
Fix file open for python3
At python3 there is no "file" the "open" function has to be use to open
a file.
Diffstat (limited to 'python')
-rw-r--r-- | python/subunit/filters.py | 4 |
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) |