commit | c77d9f38c2e1435c2d20af353abbb624f2767ba6 | [log] [tgz] |
---|---|---|
author | Christian Heimes <christian@cheimes.de> | Sat Jun 22 21:05:02 2013 +0200 |
committer | Christian Heimes <christian@cheimes.de> | Sat Jun 22 21:05:02 2013 +0200 |
tree | 5ab3e9d1bc2d9cf07263e404992d5def15d56c3b | |
parent | 6ce8d17d02bf1e39265d6c77fe5a851cb38cefd6 [diff] [blame] |
Issue #11016: Add C implementation of the stat module as _stat
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 @@ else: perm.append("-") return "".join(perm) + +# If available, use C implementation +try: + from _stat import * +except ModuleNotFoundError: + pass