Skip to content

Commit b034eee

Browse files
committed
Close #18954: Fix some typo in fileutils.c comments
Patch written by Vajrasky Kok.
1 parent 9143b0e commit b034eee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Python/fileutils.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ extern wchar_t* _Py_DecodeUTF8_surrogateescape(const char *s, Py_ssize_t size);
2222
#endif
2323

2424
#ifdef O_CLOEXEC
25-
/* Does open() supports the O_CLOEXEC flag? Possible values:
25+
/* Does open() support the O_CLOEXEC flag? Possible values:
2626
2727
-1: unknown
2828
0: open() ignores O_CLOEXEC flag, ex: Linux kernel older than 2.6.23
@@ -607,7 +607,7 @@ get_inheritable(int fd, int raise)
607607
}
608608

609609
/* Get the inheritable flag of the specified file descriptor.
610-
Return 1 if it the file descriptor can be inherited, 0 if it cannot,
610+
Return 1 if the file descriptor can be inherited, 0 if it cannot,
611611
raise an exception and return -1 on error. */
612612
int
613613
_Py_get_inheritable(int fd)
@@ -706,7 +706,7 @@ set_inheritable(int fd, int inheritable, int raise, int *atomic_flag_works)
706706
}
707707

708708
/* Make the file descriptor non-inheritable.
709-
Return 0 success, set errno and return -1 on error. */
709+
Return 0 on success, set errno and return -1 on error. */
710710
static int
711711
make_non_inheritable(int fd)
712712
{

0 commit comments

Comments
 (0)