matchcompiler: pep8 fixes

This commit is contained in:
Matthias Krüger 2015-03-20 01:31:41 +01:00
parent 7ef74924e1
commit 80be769912
1 changed files with 4 additions and 4 deletions

View File

@ -123,7 +123,7 @@ class MatchCompiler:
elif tok == '%varid%': elif tok == '%varid%':
return '(tok->isName() && tok->varId()==varid)' return '(tok->isName() && tok->varId()==varid)'
elif (len(tok) > 2) and (tok[0] == "%"): elif (len(tok) > 2) and (tok[0] == "%"):
print ("unhandled:" + tok) print("unhandled:" + tok)
return ( return (
'(tok->str()==' + self._insertMatchStr(tok) + ')/* ' + tok + ' */' '(tok->str()==' + self._insertMatchStr(tok) + ')/* ' + tok + ' */'
@ -664,7 +664,7 @@ def main():
# convert all lib/*.cpp files # convert all lib/*.cpp files
for f in glob.glob('lib/*.cpp'): 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:]) mc.convertFile(f, build_dir + '/' + f[4:])
if __name__ == '__main__': if __name__ == '__main__':