Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 61eeb04

Browse files
committed
The docstring for ttyname(..) claims a second "mode" argument. The
actual code does not allow such an argument. (Finn Bock.)
1 parent 11a8d0b commit 61eeb04

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/posixmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ posix_access(self, args)
594594

595595
#ifdef HAVE_TTYNAME
596596
static char posix_ttyname__doc__[] =
597-
"ttyname(fd, mode) -> String\n\
597+
"ttyname(fd) -> String\n\
598598
Return the name of the terminal device connected to 'fd'.";
599599

600600
static PyObject *

0 commit comments

Comments
 (0)