def __init__(self, **kwargs): buf = FileIO(sys.stdout.fileno(), 'w') super(_Py3Utf8Stdout, self).__init__( buf, encoding='utf8', errors='strict' )