From: Guido van Rossum Date: Mon, 22 Feb 1999 15:29:15 +0000 (+0000) Subject: The docstring for ttyname(..) claims a second "mode" argument. The X-Git-Tag: v1.5.2c1~289 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=61eeb044d7d1a6d0257f8aff6794a5d6e1f80944;p=thirdparty%2FPython%2Fcpython.git 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 e8de3e64e8d4..a0b4f23b574a 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -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 *