[yum-commits] urlgrabber/grabber.py

skvidal at osuosl.org skvidal at osuosl.org
Fri May 15 20:22:21 UTC 2009


 urlgrabber/grabber.py |   11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

New commits:
commit 89060f513a8aa50c1cc6b7aa3328bb40b9c92c7d
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Fri May 15 16:20:37 2009 -0400

    make it use *args instead of silly if statements

diff --git a/urlgrabber/grabber.py b/urlgrabber/grabber.py
index 3205950..e8814ae 100644
--- a/urlgrabber/grabber.py
+++ b/urlgrabber/grabber.py
@@ -608,15 +608,8 @@ class URLGrabError(IOError):
            # or simply
          print e  #### print '[Errno %i] %s' % (e.errno, e.strerror)
     """
-    def __init__(self, errno, strerror=None, filename=None):
-        if not strerror:
-            IOError.__init__(self, errno)
-        else:
-            if not filename:
-                IOError.__init__(self, errno, strerror)
-            else:
-                IOError.__init__(self, errno, strerror, filename)
-
+    def __init__(self, *args):
+        IOError.__init__(self, *args)
         self.url = "No url specified"
 
 class CallbackObject:


More information about the Yum-commits mailing list