def dump_probes(probes, tofile):
 with open(tofile, 'w') as stream:
  stream.writelines(probes)

def dump_probes ( probes , tofile ) : with open ( tofile , 'w' ) as stream : stream . writelines ( probes )
writes the given list of dtrace probes to a file .