Show More
@@ -154,7 +154,7 b' class tarit(object):' | |||||
154 |
|
154 | |||
155 | def taropen(mode, name='', fileobj=None): |
|
155 | def taropen(mode, name='', fileobj=None): | |
156 | if kind == 'gz': |
|
156 | if kind == 'gz': | |
157 | mode = mode[0] |
|
157 | mode = mode[0:1] | |
158 | if not fileobj: |
|
158 | if not fileobj: | |
159 | fileobj = open(name, mode + 'b') |
|
159 | fileobj = open(name, mode + 'b') | |
160 | gzfileobj = self.GzipFileWithTime(name, mode + 'b', |
|
160 | gzfileobj = self.GzipFileWithTime(name, mode + 'b', |
@@ -2518,7 +2518,7 b' def difflabel(func, *args, **kw):' | |||||
2518 | yield (t, l) |
|
2518 | yield (t, l) | |
2519 | else: |
|
2519 | else: | |
2520 | for token in tabsplitter.findall(stripline): |
|
2520 | for token in tabsplitter.findall(stripline): | |
2521 |
if '\t' |
|
2521 | if token.startswith('\t'): | |
2522 | yield (token, 'diff.tab') |
|
2522 | yield (token, 'diff.tab') | |
2523 | else: |
|
2523 | else: | |
2524 | yield (token, label) |
|
2524 | yield (token, label) |
General Comments 0
You need to be logged in to leave comments.
Login now