vpc_parser: fix python2 compatibility

This commit is contained in:
nillerusr 2021-11-05 10:49:26 +03:00
parent 889829e5b4
commit 31586ce622

View File

@ -122,9 +122,8 @@ def parse_vpcs( env ,vpcs, basedir ):
if i == '': continue if i == '': continue
s = match_statement.search(i) s = match_statement.search(i)
if s: if s and not compute_statement(env.DEFINES+defines, s.group(0)):
if not compute_statement(env.DEFINES+defines, s[0]): continue
continue
if i.startswith('$') and iBrackets == 0: if i.startswith('$') and iBrackets == 0:
ret.update({i:[]}) ret.update({i:[]})