The docstring for ttyname(..) claims a second "mode" argument. The
actual code does not allow such an argument. (Finn Bock.)
This commit is contained in:
parent
11a8d0b684
commit
61eeb044d7
|
@ -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 *
|
||||
|
|
Loading…
Reference in New Issue