Skip to content

Commit

Permalink
matchcompiler: pep8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskrgr committed Mar 20, 2015
1 parent 7ef7492 commit 80be769
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/matchcompiler.py
Expand Up @@ -123,7 +123,7 @@ def _compileCmd(self, tok):
elif tok == '%varid%':
return '(tok->isName() && tok->varId()==varid)'
elif (len(tok) > 2) and (tok[0] == "%"):
print ("unhandled:" + tok)
print("unhandled:" + tok)

return (
'(tok->str()==' + self._insertMatchStr(tok) + ')/* ' + tok + ' */'
Expand Down Expand Up @@ -524,8 +524,8 @@ def _replaceTokenFindMatch(self, line):
break

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

g0 = res[0]
tok = res[1]
Expand Down Expand Up @@ -664,7 +664,7 @@ def main():

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

if __name__ == '__main__':
Expand Down

0 comments on commit 80be769

Please sign in to comment.