From 1b98e8994e7930b8e1c3dc5d1ed919b1e08dd6bc Mon Sep 17 00:00:00 2001 From: nillerusr Date: Fri, 5 Nov 2021 10:53:29 +0300 Subject: [PATCH] vpc_parser: fix python2 compatibility again --- scripts/waifulib/vpc_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/waifulib/vpc_parser.py b/scripts/waifulib/vpc_parser.py index 75db6cba..320e7586 100644 --- a/scripts/waifulib/vpc_parser.py +++ b/scripts/waifulib/vpc_parser.py @@ -38,7 +38,7 @@ def compute_statement( defines, statement ): for token in token_list: r = token.search(statement, pos) if r and r.start() == pos: - l += [r[0]] + l += [r.group(0)]] pos = r.end() k = 0