fix compatibility with python2.6
This commit is contained in:
parent
89e3492aa0
commit
65169a8a8d
2 changed files with 12 additions and 10 deletions
|
|
@ -496,8 +496,9 @@ class Repositories(object):
|
|||
progress.progress(0.7, 'Setting up module...')
|
||||
|
||||
# Extract module from tarball.
|
||||
with tarfile.open('', 'r:gz', fp) as tar:
|
||||
tar.extractall(self.modules_dir)
|
||||
tar = tarfile.open('', 'r:gz', fp)
|
||||
tar.extractall(self.modules_dir)
|
||||
tar.close()
|
||||
|
||||
self.versions.set(info.name, info.version)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue