def write2log(txt): out_file = file(settings.UpdateLogFilename(), 'a') print >> out_file, txt out_file.close()
def write2log(txt): out_file = open(settings.UpdateLogFilename(), 'a') out_file.write(strng.to_text(txt)) out_file.close()
def write2log(txt): out_file = open(settings.UpdateLogFilename(), 'a') print(txt, file=out_file) out_file.close()