Hi!

> I've hit the following problem numerous times, mainly when grabbing a
> local file.

>>> urlgrabber.urlgrab('file:///etc/passwd', 'bla')
'/etc/passwd'
>>> urlgrabber.urlgrab('file:///etc/passwd', 'bla', copy_local=True)
'bla'

I can't reproduce that.  What version of urlgrabber are you using?

> +                    size = self.size
> +                    if size is not None:

The PyCurlFileObject.size attribute is initialized in __init__ to 0,
and updated to int(str) when the Content-Length header is parsed.
It can't be None, IMO.
_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to