Show More
@@ -70,6 +70,8 b' class tarit(object):' | |||||
70 | self.fileobj.write('\010') # compression method |
|
70 | self.fileobj.write('\010') # compression method | |
71 | # Python 2.6 deprecates self.filename |
|
71 | # Python 2.6 deprecates self.filename | |
72 | fname = getattr(self, 'name', None) or self.filename |
|
72 | fname = getattr(self, 'name', None) or self.filename | |
|
73 | if fname and fname.endswith('.gz'): | |||
|
74 | fname = fname[:-3] | |||
73 | flags = 0 |
|
75 | flags = 0 | |
74 | if fname: |
|
76 | if fname: | |
75 | flags = gzip.FNAME |
|
77 | flags = gzip.FNAME |
General Comments 0
You need to be logged in to leave comments.
Login now