This commit is contained in:
Sviatoslav Sydorenko 2017-06-08 08:44:22 +00:00 committed by GitHub
commit f8de2e4621
6 changed files with 9 additions and 14 deletions

View file

@ -1,7 +1,6 @@
from __future__ import absolute_import
from __future__ import unicode_literals
import io
import os.path
@ -14,5 +13,5 @@ def get_resource_path(path):
def write_file(filename, contents):
"""Hax because coveragepy chokes on nested context managers."""
with io.open(filename, 'w', newline='') as file_obj:
with open(filename, 'w', newline='') as file_obj:
file_obj.write(contents)