]> granicus.if.org Git - python/commitdiff
The docstring for ttyname(..) claims a second "mode" argument. The
authorGuido van Rossum <guido@python.org>
Mon, 22 Feb 1999 15:29:15 +0000 (15:29 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 22 Feb 1999 15:29:15 +0000 (15:29 +0000)
actual code does not allow such an argument.  (Finn Bock.)

Modules/posixmodule.c

index e8de3e64e8d4f30b18256b8aa5224719184dd921..a0b4f23b574a37c17431f0eeb216e10752ea339e 100644 (file)
@@ -594,7 +594,7 @@ posix_access(self, args)
 
 #ifdef HAVE_TTYNAME
 static char posix_ttyname__doc__[] =
-"ttyname(fd, mode) -> String\n\
+"ttyname(fd) -> String\n\
 Return the name of the terminal device connected to 'fd'.";
 
 static PyObject *