[yum-commits] urlgrabber/grabber.py

skvidal at osuosl.org skvidal at osuosl.org
Mon Oct 26 13:46:43 UTC 2009


 urlgrabber/grabber.py |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit b493cc58ad079147da4af13a0679aac3f6392271
Author: James Antill <james at and.org>
Date:   Mon Oct 26 09:46:21 2009 -0400

        Add geturl() for yum include

diff --git a/urlgrabber/grabber.py b/urlgrabber/grabber.py
index c4916d5..f98f423 100644
--- a/urlgrabber/grabber.py
+++ b/urlgrabber/grabber.py
@@ -1589,7 +1589,11 @@ class PyCurlFileObject():
             self.opts.progress_obj.end(self._amount_read)
         self.fo.close()
         
-
+    def geturl(self):
+        """ Provide the geturl() method, used to be got from
+            urllib.addinfourl, via. urllib.URLopener.* """
+        return self.url
+        
 _curl_cache = pycurl.Curl() # make one and reuse it over and over and over
 
 


More information about the Yum-commits mailing list