[yum-commits] urlgrabber/grabber.py

skvidal at osuosl.org skvidal at osuosl.org
Mon Sep 21 21:09:31 UTC 2009


 urlgrabber/grabber.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1914b6414e7dfe760c969d5305d93a59448623f1
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Mon Sep 21 17:08:00 2009 -0400

    make sure the value we get back from the parse150 and other calls is
    converted to an int before we make it 'size' rhbug: #524705

diff --git a/urlgrabber/grabber.py b/urlgrabber/grabber.py
index 2a85609..8a50d22 100644
--- a/urlgrabber/grabber.py
+++ b/urlgrabber/grabber.py
@@ -1524,7 +1524,7 @@ class PyCurlFileObject():
                 elif buf.startswith('150 '):
                     s = parse150(buf)
                 if s:
-                    self.size = s
+                    self.size = int(s)
             
             return len(buf)
         except KeyboardInterrupt:


More information about the Yum-commits mailing list