Mercurial > hg
diff mercurial/archival.py @ 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 | 1d2fdea875bc |
children | 6af107c742bf |
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)