From c77d9f38c2e1435c2d20af353abbb624f2767ba6 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Sat, 22 Jun 2013 21:05:02 +0200 Subject: Issue #11016: Add C implementation of the stat module as _stat --- Lib/stat.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Lib/stat.py') diff --git a/Lib/stat.py b/Lib/stat.py index 704adfe2e1..0ea653b014 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 -- cgit v1.2.1