Mercurial > hg-stable
diff mercurial/archival.py @ 8778:c5f36402daad
use new style classes
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Wed, 10 Jun 2009 15:10:21 +0200 |
parents | f9a80054dd3c |
children | 58edd448da4f |
line wrap: on
line diff
--- a/mercurial/archival.py Wed Jun 10 03:20:20 2009 +0200 +++ b/mercurial/archival.py Wed Jun 10 15:10:21 2009 +0200 @@ -34,7 +34,7 @@ raise util.Abort(_('archive prefix contains illegal components')) return prefix -class tarit: +class tarit(object): '''write archive to tar file or stream. can write uncompressed, or compress with gzip or bzip2.''' @@ -106,7 +106,7 @@ def done(self): self.z.close() -class tellable: +class tellable(object): '''provide tell method for zipfile.ZipFile when writing to http response file object.''' @@ -124,7 +124,7 @@ def tell(self): return self.offset -class zipit: +class zipit(object): '''write archive to zip file or stream. can write uncompressed, or compressed with deflate.''' @@ -156,7 +156,7 @@ def done(self): self.z.close() -class fileit: +class fileit(object): '''write archive as files in directory.''' def __init__(self, name, prefix, mtime):