The docstring for ttyname(..) claims a second "mode" argument. The
actual code does not allow such an argument.  (Finn Bock.)
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index e8de3e6..a0b4f23 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -594,7 +594,7 @@
 
 #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 *