comparison fetch.py @ 35:d9b9c4599a3d

use correct name
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 15 Nov 2011 11:59:37 -0800
parents 14c791d8db59
children d3558b202acb
comparison
equal deleted inserted replaced
34:14c791d8db59 35:d9b9c4599a3d
85 def __call__(self, dest): 85 def __call__(self, dest):
86 self.clobber(dest) 86 self.clobber(dest)
87 if os.path.exists(dest): 87 if os.path.exists(dest):
88 assert os.path.isdir(dest), "Destination must be a directory" 88 assert os.path.isdir(dest), "Destination must be a directory"
89 else: 89 else:
90 os.mkdirs(dest) 90 os.makedirs(dest)
91 if self.subpath: 91 if self.subpath:
92 raise NotImplementedError("should extract only a subpath of a tarball but I haven't finished it yet") 92 raise NotImplementedError("should extract only a subpath of a tarball but I haven't finished it yet")
93 buffer = StringIO() 93 buffer = StringIO()
94 buffer.write(self.download(self.url)) 94 buffer.write(self.download(self.url))
95 buffer.seek(0) 95 buffer.seek(0)