Mercurial > repos > iuc > filter_tabular
diff filters.py @ 11:499697bbd5a2 draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/query_tabular commit d624cde6382bc326a5ae318482e16e643ef7d7d1"
| author | iuc |
|---|---|
| date | Fri, 12 Feb 2021 21:18:01 +0000 |
| parents | 64a96306112e |
| children | 26b66c3c5504 |
line wrap: on
line diff
--- a/filters.py Thu Sep 24 11:25:50 2020 +0000 +++ b/filters.py Fri Feb 12 21:18:01 2021 +0000 @@ -82,7 +82,7 @@ def replace_add(self, line, pat, rep, col, pos): fields = line.rstrip('\r\n').split('\t') - i = pos if pos else len(fields) + i = pos if pos is not None else len(fields) val = '' if col < len(fields) and re.search(pat, fields[col]): val = re.sub(pat, rep, fields[col]).replace('\t', ' ')
