Skip to content
Snippets Groups Projects
Commit c933f04e authored by Studer Gabriel's avatar Studer Gabriel
Browse files

need to explicitely call read in new urllib

parent e33da01a
No related branches found
No related tags found
No related merge requests found
......@@ -60,8 +60,7 @@ class RemoteRepository:
raise IOError('Could not load %s from %s (status code %d, url %s)' \
% (id, self.name, status, remote_url))
tmp_file = tempfile.NamedTemporaryFile(suffix=tmp_file_suffix)
contents = ''.join(connection)
tmp_file.write(contents)
tmp_file.write(connection.read())
tmp_file.flush()
return tmp_file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment