Match compiler: Cosmetic changes after running pylint

This commit is contained in:
Thomas Jarosch 2013-01-04 03:44:04 +01:00
parent 71a236b3df
commit 542c6e82d3
1 changed files with 6 additions and 6 deletions

View File

@ -53,7 +53,7 @@ class MatchCompiler:
if isFindMatch:
ret = '\nconst Token *tok = start_tok;\n'
returnStatement = 'continue;\n';
returnStatement = 'continue;\n'
else:
arg2 = ''
if varid:
@ -61,7 +61,7 @@ class MatchCompiler:
ret = '// ' + pattern + '\n'
ret += 'static bool match' + str(nr) + '(const Token *tok'+arg2+') {\n'
returnStatement = 'return false;\n';
returnStatement = 'return false;\n'
tokens = pattern.split(' ')
gotoNextToken = ''
@ -352,7 +352,7 @@ class MatchCompiler:
# Compute matchFunctions
strFunctions = ''
for function in matchFunctions:
strFunctions += function;
strFunctions += function
fout = open(destname, 'wt')
fout.write(header+stringList+strFunctions+code)