author | Brendan Cully <brendan@kublai.com> |
Tue, 24 Apr 2007 10:47:41 -0700 | |
changeset 4370 | 6af107c742bf |
parent 4369 | bf8319ee3428 (current diff) |
parent 4357 | 3f1b0c0fb4fd (diff) |
child 4371 | d7ad1e42a368 |
--- 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)