Issue #11016: Add C implementation of the stat module as _stat

This commit is contained in:
Christian Heimes 2013-06-22 21:05:02 +02:00
parent 6ce8d17d02
commit c77d9f38c2
9 changed files with 679 additions and 23 deletions

View file

@ -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