mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
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
Block a user