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
Branches
Tags
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.
Please register or to comment