virtinst: Fix _URLFetcher for reading files
_grabber() is used for both binary and text files.
This commit is contained in:
parent
2eb455c97f
commit
f836e47b70
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue