-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
Duplicated st_ino calculation #101810
Copy link
Copy link
Closed
Labels
3.10only security fixesonly security fixes3.11only security fixesonly security fixes3.12only security fixesonly security fixesOS-windowstype-featureA feature request or enhancementA feature request or enhancement
Metadata
Metadata
Assignees
Labels
3.10only security fixesonly security fixes3.11only security fixesonly security fixes3.12only security fixesonly security fixesOS-windowstype-featureA feature request or enhancementA feature request or enhancement
Feature or enhancement
The
status->st_ino = (((uint64_t)info.nFileIndexHigh) << 32) + info.nFileIndexLow;in function_Py_fstat_noraise()in filePython/fileutils.cis already calculated and assigned in the function_Py_attribute_data_to_stat()in same file.So I'm proposing removing the duplicated code.
Pitch
It's a duplicated code that is already done in the previous function call
_Py_attribute_data_to_stat().Previous discussion
Linked PRs