Browse Source

vpc_parser: fix python2 compatibility

pull/27/head
nillerusr 3 years ago
parent
commit
31586ce622
  1. 3
      scripts/waifulib/vpc_parser.py

3
scripts/waifulib/vpc_parser.py

@ -122,8 +122,7 @@ 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:

Loading…
Cancel
Save