Skip to content

Commit 4f7f34e

Browse files
committed
Fixed re syntax error
1 parent 040b7ac commit 4f7f34e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

vcfkit/vcf2tsv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@
9393
line = line.split("\t")
9494
line = line[:ANN_loc - 1] + ANN_header + line[ANN_loc + 1:]
9595
line = '\t'.join(line)
96-
print(re.sub("\[[0-9]+\]", "", line).strip("#\n ").replace(":", "_"))
96+
print(re.sub(r"\[[0-9]+\]", "", line).strip("#\n ").replace(":", "_"))
9797
elif n == 0 and args["long"] and args["--print-header"]:
9898
# Fix header for long format.
99-
line = re.sub("\[[0-9]+\]", "", line).strip("#\n ").split("\t")
99+
line = re.sub(r"\[[0-9]+\]", "", line).strip("#\n ").split("\t")
100100
header = []
101101
for var in line:
102102
if ":" in var:

0 commit comments

Comments
 (0)