decompressionmw: relative hardcoded filename raises OSError when process has not write access to CWD

This commit is contained in:
daniel 2009-06-17 03:41:42 -03:00
parent d175ced4a1
commit 2c93bc40c6
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class DecompressionMiddleware(object):
def is_tar(self, response):
try:
tar_file = tarfile.open(name='tar.tmp', fileobj=self.archive)
tar_file = tarfile.open(fileobj=self.archive)
except tarfile.ReadError:
return False
if tar_file.members: