parameters: (self, pattern, comment_str='#')
docstring: Comments out all lines that match with pattern
docstring_summary: Comments out all lines that match with pattern
docstring_tokens: Comments out all lines that match with pattern
function: def comment_out_lines(self, pattern, comment_str='#'):
          """ Comments out all lines that match with pattern """
          for line in self.cfile.splitlines():
              if re.search(pattern, line):
                  self.cfile = self.cfile.replace(line, comment_str + line)
function_tokens: def comment_out_lines ( self , pattern , comment_str = '#' ) : for line in self . cfile . splitlines ( ) : if re . search ( pattern , line ) : self . cfile = self . cfile . replace ( line , comment_str + line )