summaryrefslogtreecommitdiffstats
path: root/Lib/stat.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-06-22 19:05:02 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-06-22 19:05:02 (GMT)
commitc77d9f38c2e1435c2d20af353abbb624f2767ba6 (patch)
tree5ab3e9d1bc2d9cf07263e404992d5def15d56c3b /Lib/stat.py
parent6ce8d17d02bf1e39265d6c77fe5a851cb38cefd6 (diff)
downloadcpython-c77d9f38c2e1435c2d20af353abbb624f2767ba6.zip
cpython-c77d9f38c2e1435c2d20af353abbb624f2767ba6.tar.gz
cpython-c77d9f38c2e1435c2d20af353abbb624f2767ba6.tar.bz2
Issue #11016: Add C implementation of the stat module as _stat
Diffstat (limited to 'Lib/stat.py')
-rw-r--r--Lib/stat.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/stat.py b/Lib/stat.py
index 704adfe..0ea653b 100644
--- a/Lib/stat.py
+++ b/Lib/stat.py
@@ -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