Mercurial > hg-stable
changeset 4370:6af107c742bf
Merge with crew-stable
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Tue, 24 Apr 2007 10:47:41 -0700 |
parents | bf8319ee3428 (current diff) 3f1b0c0fb4fd (diff) |
children | d7ad1e42a368 |
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:54:43 2007 +0200 +++ b/mercurial/archival.py Tue Apr 24 10:47:41 2007 -0700 @@ -43,7 +43,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)