Skip to content

Commit f35b44a

Browse files
Apply suggestions from code review
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent b17892b commit f35b44a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Modules/_io/fileio.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,8 @@ portable_lseek(fileio *self, PyObject *posobj, int whence, bool suppress_pipe_er
993993
if (h != INVALID_HANDLE_VALUE && GetFileType(h) == FILE_TYPE_PIPE) {
994994
res = -1;
995995
errno = ESPIPE;
996-
} else {
996+
}
997+
else {
997998
res = _lseeki64(fd, pos, whence);
998999
}
9991000
#else

Modules/posixmodule.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11932,7 +11932,8 @@ os_lseek_impl(PyObject *module, int fd, Py_off_t position, int how)
1193211932
HANDLE h = (HANDLE)_get_osfhandle(fd);
1193311933
if (h != INVALID_HANDLE_VALUE && GetFileType(h) == FILE_TYPE_PIPE) {
1193411934
errno = ESPIPE;
11935-
} else {
11935+
}
11936+
else {
1193611937
result = _lseeki64(fd, position, how);
1193711938
}
1193811939
#else

0 commit comments

Comments
 (0)