comparison fetch.py @ 18:64f89df1b966

comment
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 09 Nov 2011 16:58:03 -0800
parents e2af4bc5159c
children d69041957c0e
comparison
equal deleted inserted replaced
17:e2af4bc5159c 18:64f89df1b966
27 def __init__(self, url, clobber=False): 27 def __init__(self, url, clobber=False):
28 self.subpath = None 28 self.subpath = None
29 if '#' in url: 29 if '#' in url:
30 url, self.subpath = url.rsplit('#') 30 url, self.subpath = url.rsplit('#')
31 self.url = url 31 self.url = url
32 # self.clobber = clobber # unused
32 33
33 def __call__(self, dest): 34 def __call__(self, dest):
34 raise NotImplementedError("Should be called by implementing class") 35 raise NotImplementedError("Should be called by implementing class")
35 36
36 @classmethod 37 @classmethod