summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/importlib/abc.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/Lib/importlib/abc.py b/Lib/importlib/abc.py
index 6a7e364..3c6b481 100644
--- a/Lib/importlib/abc.py
+++ b/Lib/importlib/abc.py
@@ -117,6 +117,20 @@ class SourceLoader(_bootstrap.SourceLoader, ResourceLoader, ExecutionLoader):
"""
+ def path_mtime(self, path:str) -> int:
+ """Return the modification time for the path."""
+ raise NotImplementedError
+
+ def set_data(self, path:str, data:bytes) -> None:
+ """Write the bytes to the path (if possible).
+
+ Any needed intermediary directories are to be created. If for some
+ reason the file cannot be written because of permissions, fail
+ silently.
+
+ """
+ raise NotImplementedError
+
class PyLoader(SourceLoader):