Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Writes a Unicode string in sys.stdout using terminal locale.

    

        def write_to_stdout(unicode_text):
    """Writes a Unicode string in sys.stdout using terminal locale.

    """
    writer = codecs.getwriter(locale.getpreferredencoding())(sys.stdout)
    writer.write(unicode_text)
        


src/e/y/eyegrade-HEAD/eyegrade/exammaker.py   eyegrade(Download)
        exam_text = ''.join(replaced)
        if self.output_file == sys.stdout:
            utils.write_to_stdout(exam_text)
        else:
            utils.write_file(self.output_file%model, exam_text)