Show More
@@ -52,7 +52,8 b' class tarit:' | |||||
52 | def _write_gzip_header(self): |
|
52 | def _write_gzip_header(self): | |
53 | self.fileobj.write('\037\213') # magic header |
|
53 | self.fileobj.write('\037\213') # magic header | |
54 | self.fileobj.write('\010') # compression method |
|
54 | self.fileobj.write('\010') # compression method | |
55 |
|
|
55 | # Python 2.6 deprecates self.filename | |
|
56 | fname = getattr(self, 'name', None) or self.filename | |||
56 | flags = 0 |
|
57 | flags = 0 | |
57 | if fname: |
|
58 | if fname: | |
58 | flags = gzip.FNAME |
|
59 | flags = gzip.FNAME |
General Comments 0
You need to be logged in to leave comments.
Login now