Show More
@@ -39,7 +39,7 class tarit: | |||||
39 |
|
39 | |||
40 | def __init__(self, dest, prefix, mtime, kind=''): |
|
40 | def __init__(self, dest, prefix, mtime, kind=''): | |
41 | self.prefix = tidyprefix(dest, prefix, ['.tar', '.tar.bz2', '.tar.gz', |
|
41 | self.prefix = tidyprefix(dest, prefix, ['.tar', '.tar.bz2', '.tar.gz', | |
42 | '.tgz', 'tbz2']) |
|
42 | '.tgz', '.tbz2']) | |
43 | self.mtime = mtime |
|
43 | self.mtime = mtime | |
44 | if isinstance(dest, str): |
|
44 | if isinstance(dest, str): | |
45 | self.z = tarfile.open(dest, mode='w:'+kind) |
|
45 | self.z = tarfile.open(dest, mode='w:'+kind) |
General Comments 0
You need to be logged in to leave comments.
Login now