Skip to content
Snippets Groups Projects
Commit 90107820 authored by ale's avatar ale
Browse files

Fix file open mode (py3)

parent 56247c8b
No related branches found
No related tags found
1 merge request!4Drop Python 2 support
......@@ -30,7 +30,7 @@ devnull = open(os.devnull)
def _start_httpd(public_key, config_file):
with open('public.key', 'w') as fd:
with open('public.key', 'wb') as fd:
fd.write(public_key)
env = dict(os.environ)
env['TESTROOT'] = os.getcwd()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment