original_docstring:  Convert stock text file into easier CSV file 
docstring: Convert stock text file into easier CSV file
docstring_tokens: Convert stock text file into easier CSV file
code: def _txt2csv(stream, filename, destpath="/tmp"):
          """ Convert stock text file into easier CSV file """
          newcsvpath = os.path.join(destpath, filename)
          with open(newcsvpath, "w") as destcsv:
              csvwriter = csv.DictWriter(destcsv, fieldnames=stock.header())
              csvwriter.writeheader()
              for r in stock.read(stream):
                  csvwriter.writerow(r)
          return newcsvpath
code_tokens: def _txt2csv ( stream , filename , destpath = "/tmp" ) : newcsvpath = os . path . join ( destpath , filename ) with open ( newcsvpath , "w" ) as destcsv : csvwriter = csv . DictWriter ( destcsv , fieldnames = stock . header ( ) ) csvwriter . writeheader ( ) for r in stock . read ( stream ) : csvwriter . writerow ( r ) return newcsvpath
short_docstring: Convert stock text file into easier CSV file
short_docstring_tokens: Convert stock text file into easier CSV file
comment: """ Convert stock text file into easier CSV file """