Show More
@@ -124,11 +124,7 b' class tarit(object):' | |||
|
124 | 124 | def _write_gzip_header(self): |
|
125 | 125 | self.fileobj.write('\037\213') # magic header |
|
126 | 126 | self.fileobj.write('\010') # compression method |
|
127 | # Python 2.6 introduced self.name and deprecated self.filename | |
|
128 | try: | |
|
129 | 127 |
|
|
130 | except AttributeError: | |
|
131 | fname = self.filename | |
|
132 | 128 | if fname and fname.endswith('.gz'): |
|
133 | 129 | fname = fname[:-3] |
|
134 | 130 | flags = 0 |
General Comments 0
You need to be logged in to leave comments.
Login now