Re: [PATCH 1/2] virtinst: Fix _URLFetcher for reading files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/08/2017 01:23 AM, Andrew Wong wrote:
> _grabber() is used for both binary and text files.
> ---
>  virtinst/urlfetcher.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/virtinst/urlfetcher.py b/virtinst/urlfetcher.py
> index 5dae424c..1288668a 100644
> --- a/virtinst/urlfetcher.py
> +++ b/virtinst/urlfetcher.py
> @@ -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()
>  
> 

ACK and pushed now

Thanks,
Cole

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list



[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux