mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
Issue #11016: Add C implementation of the stat module as _stat
This commit is contained in:
parent
6ce8d17d02
commit
c77d9f38c2
9 changed files with 679 additions and 23 deletions
|
@ -147,3 +147,9 @@ def filemode(mode):
|
|||
else:
|
||||
perm.append("-")
|
||||
return "".join(perm)
|
||||
|
||||
# If available, use C implementation
|
||||
try:
|
||||
from _stat import *
|
||||
except ModuleNotFoundError:
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue