code: def commitLine(self, line) :
  		
  		if self.streamBuffer is None :
  			raise ValueError("Commit lines is only for when you are streaming to a file")
  
  		self.streamBuffer.append(line)
  		if len(self.streamBuffer) % self.writeRate == 0 :
  			for i in xrange(len(self.streamBuffer)) :
  				self.streamBuffer[i] = str(self.streamBuffer[i])
  			self.streamFile.write("%s\n" % ('\n'.join(self.streamBuffer)))
  			self.streamFile.flush()
  			self.streamBuffer = []
docs: Commits a line making it ready to be streamed to a file and saves the current buffer if needed. If no stream is active, raises a ValueError