def _strip_comment_tags(comments, tags):
 def _strip(line):
  for tag in tags:
   if line.startswith(tag):
    return line[len(tag):].strip()
  return line
 comments[:] = map(_strip, comments)

def _strip_comment_tags ( comments , tags ) : def _strip ( line ) : for tag in tags : if line . startswith ( tag ) : return line [ len ( tag ) : ] . strip ( ) return line comments [ : ] = map ( _strip , comments )
helper function for extract that strips comment tags from strings in a list of comment lines .