]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Document os.device_encoding.
authorGeorg Brandl <georg@python.org>
Fri, 21 Dec 2007 08:45:42 +0000 (08:45 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 21 Dec 2007 08:45:42 +0000 (08:45 +0000)
Doc/library/os.rst

index 4dbeac38889ee2cadd3225cac3ee159c12cdbd9b..2a8325ab4ea66ea885b6de1d5c4189bbb92c4b0e 100644 (file)
@@ -401,6 +401,12 @@ by file descriptors.
       :func:`fdopen`, use its :meth:`close` method.
 
 
+.. function:: device_encoding(fd)
+
+   Return a string describing the encoding of the device associated with *fd*
+   if it is connected to a terminal; else return :const:`None`.
+
+
 .. function:: dup(fd)
 
    Return a duplicate of file descriptor *fd*. Availability: Macintosh, Unix,