1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-25 17:36:13 +01:00

- fetch.OscFileGrabber: fix for commit 9ab5a37113

We still have to support older urlgrabber versions where the class
"URLGrabber" is an old-style class and therefore we cannot use a "super(...)"
call. This fixes issue #32
This commit is contained in:
Marcus Huewe 2013-05-23 15:04:20 +02:00
parent 08a9505042
commit cdd73ba983

View File

@ -37,7 +37,9 @@ def join_url(self, base_url, rel_url):
class OscFileGrabber(URLGrabber):
def __init__(self, progress_obj = None):
super(OscFileGrabber, self).__init__()
# we cannot use super because we still have to support
# older urlgrabber versions where URLGrabber is an old-style class
URLGrabber.__init__(self)
self.progress_obj = progress_obj
def urlgrab(self, url, filename, text = None, **kwargs):