summaryrefslogtreecommitdiffstats
path: root/customgrabber.py
diff options
context:
space:
mode:
authorIzhar Firdaus <kagesenshi.87@gmail.com>2009-01-01 19:59:28 +0800
committerIzhar Firdaus <kagesenshi.87@gmail.com>2009-01-01 19:59:28 +0800
commita06c5d77e380f9ee163da8561aba47acd1786ff5 (patch)
treefc60ea33e42115fc034b20184c03626669350668 /customgrabber.py
parent6d568f2b75697f5b330c9e58e2c004bd452e1253 (diff)
downloadhack-patches-a06c5d77e380f9ee163da8561aba47acd1786ff5.tar.gz
hack-patches-a06c5d77e380f9ee163da8561aba47acd1786ff5.tar.xz
hack-patches-a06c5d77e380f9ee163da8561aba47acd1786ff5.zip
- fix download path problem when calling superclass's urlgrab
Diffstat (limited to 'customgrabber.py')
-rw-r--r--customgrabber.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/customgrabber.py b/customgrabber.py
index 5c419c7..3c76d3a 100644
--- a/customgrabber.py
+++ b/customgrabber.py
@@ -11,7 +11,7 @@ def get_filesize(url):
size = 0
return float(size)
-class AxelGrabber(grabber.URLGrabber):
+class AxelGrabber(grabber.URLGrabber,object):
def urlgrab(self, url, filename=None, **kwargs):
"""grab the file at and make a local copy at
If filename is none, the basename of the url is used.
@@ -39,7 +39,7 @@ class AxelGrabber(grabber.URLGrabber):
parts = 10
if parts == 1:
- return grabber.URLGrabber.urlgrab(self, url, filename, **kwargs)
+ return super (AxelGrabber, self).urlgrab(url, filename, **kwargs)
def retryfunc(opts, url, filename, parts):
if os.path.exists(filename):