Mercurial > repos > iuc > query_tabular
diff filters.py @ 11:83069b38aa85 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:20:32 +0000 |
parents | a3aab6045663 |
children | cf34c344508d |
line wrap: on
line diff
--- a/filters.py Thu Sep 24 11:26:46 2020 +0000 +++ b/filters.py Fri Feb 12 21:20:32 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', ' ')