docstring

This commit is contained in:
Jean-Paul Calderone 2021-01-11 12:31:13 -05:00
parent dc5ed66815
commit ed713182e7

View File

@ -199,6 +199,20 @@ class UnicodeOutput(object):
console. console.
""" """
def __init__(self, hConsole, stream, fileno, name, _complain): def __init__(self, hConsole, stream, fileno, name, _complain):
"""
:param hConsole: ``None`` or a handle on the console to which to write
unicode. Mutually exclusive with ``stream``.
:param stream: ``None`` or a file-like object to which to write bytes.
:param fileno: A result to hand back from method of the same name.
:param name: A human-friendly identifier for this output object.
:param _complain: A one-argument callable which accepts bytes to be
written when there's a problem. Care should be taken to not make
this do a write on this object.
"""
self._hConsole = hConsole self._hConsole = hConsole
self._stream = stream self._stream = stream
self._fileno = fileno self._fileno = fileno