Mercurial > hg-stable
changeset 4357:3f1b0c0fb4fd
Work around python 2.5.1 tarfile regression
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Tue, 24 Apr 2007 10:44:13 -0700 |
parents | aed9e6dceb85 |
children | 11dc22eb8e8d 6af107c742bf |
files | mercurial/archival.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/archival.py Thu Apr 19 17:52:42 2007 +0200 +++ b/mercurial/archival.py Tue Apr 24 10:44:13 2007 -0700 @@ -44,7 +44,8 @@ if isinstance(dest, str): self.z = tarfile.open(dest, mode='w:'+kind) else: - self.z = tarfile.open(mode='w|'+kind, fileobj=dest) + # Python 2.5-2.5.1 have a regression that requires a name arg + self.z = tarfile.open(name='', mode='w|'+kind, fileobj=dest) def addfile(self, name, mode, data): i = tarfile.TarInfo(self.prefix + name)