vpc_parser: fix python2 compatibility
This commit is contained in:
parent
889829e5b4
commit
31586ce622
@ -122,8 +122,7 @@ def parse_vpcs( env ,vpcs, basedir ):
|
||||
if i == '': continue
|
||||
|
||||
s = match_statement.search(i)
|
||||
if s:
|
||||
if not compute_statement(env.DEFINES+defines, s[0]):
|
||||
if s and not compute_statement(env.DEFINES+defines, s.group(0)):
|
||||
continue
|
||||
|
||||
if i.startswith('$') and iBrackets == 0:
|
||||
|
Loading…
x
Reference in New Issue
Block a user