ir.module: fix bad name of 'zipfile' variable

This name is also a library, imported. Avoid using it as a name.
(cherry picked from commit fb5bcbbd10447d8d046a84d251217c2b3e8a7ddd)

bzr revid: xrg@linux.gr-20110610094324-7rf2uio6g8g3c317
This commit is contained in:
P. Christeas 2011-06-10 12:43:24 +03:00 committed by P. Christeas
parent 971276b599
commit b9d6c89579
1 changed files with 2 additions and 2 deletions

View File

@ -420,11 +420,11 @@ class module(osv.osv):
res.append(mod.url)
if not download:
continue
zipfile = urllib.urlopen(mod.url).read()
zip_fd = urllib.urlopen(mod.url).read()
fname = addons.get_module_path(str(mod.name)+'.zip', downloaded=True)
try:
fp = file(fname, 'wb')
fp.write(zipfile)
fp.write(zip_fd)
fp.close()
except Exception:
self.__logger.exception('Error when trying to create module '