Skip to content

Commit 8b5be69

Browse files
committed
Reword code comment
1 parent 8587261 commit 8b5be69

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Python/fileutils.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1970,8 +1970,8 @@ _Py_write_impl(int fd, const void *buf, size_t count, int gil_held)
19701970
c /= 2;
19711971
} while (c > 0);
19721972
#else
1973-
/* only call write() if there is something to write.
1974-
* writing 0 bytes to not a regular file is undefined behaviour. */
1973+
/* Only call write() if there is something to write as
1974+
* writing 0 bytes to a non-regular file is an undefined behaviour. */
19751975
if (count > 0) {
19761976
n = write(fd, buf, count);
19771977
}
@@ -2000,8 +2000,8 @@ _Py_write_impl(int fd, const void *buf, size_t count, int gil_held)
20002000
c /= 2;
20012001
} while (c > 0);
20022002
#else
2003-
/* only call write() if there is something to write.
2004-
* writing 0 bytes to not a regular file is undefined behaviour. */
2003+
/* Only call write() if there is something to write as
2004+
* writing 0 bytes to a non-regular file is an undefined behaviour. */
20052005
if (count > 0) {
20062006
n = write(fd, buf, count);
20072007
}

0 commit comments

Comments
 (0)