parameters: (filename)
return_statement: return retcode
docstring: Apply a series of filters to the file  modifiying its content.
     A new file is created with the suffix _preprocessed before the extension.
     For example:
     myChapter.md --> myChapter_preprocessed.md
docstring_summary: Apply a series of filters to the file  modifiying its content.
     A new file is created with the suffix _preprocessed before the extension.
     For example:
     myChapter.md --> myChapter_preprocessed.md
docstring_tokens: Apply a series of filters to the file modifiying its content . A new file is created with the suffix _preprocessed before the extension . For example : myChapter . md -- > myChapter_preprocessed . md
function: def applyFilters(filename):
     """
     Apply a series of filters to the file  modifiying its content.
     A new file is created with the suffix _preprocessed before the extension.
     For example:
     myChapter.md --> myChapter_preprocessed.md
     """
     filecontent = open(filename).read()
     retcode=0
     for textFilter in textFilters:
        tmpretcode,filecontent=textFilter(filecontent)
        retcode+=tmpretcode
     preprocessedName = createPreprocessedName(filename)
     ofile = open(preprocessedName,"w")
     ofile.write(filecontent)
     return retcode
function_tokens: def applyFilters ( filename ) : filecontent = open ( filename ) . read ( ) retcode = 0 for textFilter in textFilters : tmpretcode , filecontent = textFilter ( filecontent ) retcode += tmpretcode preprocessedName = createPreprocessedName ( filename ) ofile = open ( preprocessedName , "w" ) ofile . write ( filecontent ) return retcode