virtinst: Fix _URLFetcher for reading files

_grabber() is used for both binary and text files.
This commit is contained in:
Andrew Wong 2017-11-08 01:23:28 -05:00 committed by Cole Robinson
parent 2eb455c97f
commit f836e47b70
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ class _URLFetcher(object):
"""
Grab the passed filename from self.location and return it as a string
"""
fileobj = io.StringIO()
fileobj = io.BytesIO()
self._grabURL(filename, fileobj)
return fileobj.getvalue()