[Python-checkins] gh-101810: Remove duplicated st_ino calculation (GH-101811)

zooba webhook-mailer at python.org
Mon Feb 13 08:49:52 EST 2023


https://github.com/python/cpython/commit/95cbb3d908175ccd855078b3fab7f99e7d0bca88
commit: 95cbb3d908175ccd855078b3fab7f99e7d0bca88
branch: main
author: James Lee <49257044+juria90 at users.noreply.github.com>
committer: zooba <steve.dower at microsoft.com>
date: 2023-02-13T13:49:44Z
summary:

gh-101810: Remove duplicated st_ino calculation (GH-101811)

files:
M Python/fileutils.c

diff --git a/Python/fileutils.c b/Python/fileutils.c
index 244bd899b3bd..22b2257a56d0 100644
--- a/Python/fileutils.c
+++ b/Python/fileutils.c
@@ -1162,8 +1162,6 @@ _Py_fstat_noraise(int fd, struct _Py_stat_struct *status)
     }
 
     _Py_attribute_data_to_stat(&info, 0, status);
-    /* specific to fstat() */
-    status->st_ino = (((uint64_t)info.nFileIndexHigh) << 32) + info.nFileIndexLow;
     return 0;
 #else
     return fstat(fd, status);



More information about the Python-checkins mailing list