Skip to content
Snippets Groups Projects
Commit 9bc7a152 authored by André Anjos's avatar André Anjos :speech_balloon: Committed by Tiago de Freitas Pereira
Browse files

Use string mode to open tempfile for py3 compat

parent 9f5f7e6d
No related branches found
No related tags found
1 merge request!37Issue 8 remove database configuration
......@@ -13,7 +13,7 @@ from ..script.verify import parse_arguments
def tmp_file(contents):
'''Generates a temporary configuration file with the contents on the input'''
retval = tempfile.NamedTemporaryFile()
retval = tempfile.NamedTemporaryFile('w')
retval.write('\n'.join(contents) + '\n')
retval.flush()
return retval
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment