Skip to content

Commit 80be769

Browse files
committed
matchcompiler: pep8 fixes
1 parent 7ef7492 commit 80be769

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tools/matchcompiler.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def _compileCmd(self, tok):
123123
elif tok == '%varid%':
124124
return '(tok->isName() && tok->varId()==varid)'
125125
elif (len(tok) > 2) and (tok[0] == "%"):
126-
print ("unhandled:" + tok)
126+
print("unhandled:" + tok)
127127

128128
return (
129129
'(tok->str()==' + self._insertMatchStr(tok) + ')/* ' + tok + ' */'
@@ -524,8 +524,8 @@ def _replaceTokenFindMatch(self, line):
524524
break
525525

526526
assert(len(res) >= 3 or len(res) < 6)
527-
# assert that Token::find(simple)match has either 2, 3 or
528-
# four arguments
527+
# assert that Token::find(simple)match has either 2, 3 or
528+
# four arguments
529529

530530
g0 = res[0]
531531
tok = res[1]
@@ -664,7 +664,7 @@ def main():
664664

665665
# convert all lib/*.cpp files
666666
for f in glob.glob('lib/*.cpp'):
667-
print (f + ' => ' + build_dir + '/' + f[4:])
667+
print(f + ' => ' + build_dir + '/' + f[4:])
668668
mc.convertFile(f, build_dir + '/' + f[4:])
669669

670670
if __name__ == '__main__':

0 commit comments

Comments
 (0)