aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/importlib/_bootstrap.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/importlib/_bootstrap.py')
-rw-r--r--Lib/importlib/_bootstrap.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py
index ab1082d83be..cd7f5d63c81 100644
--- a/Lib/importlib/_bootstrap.py
+++ b/Lib/importlib/_bootstrap.py
@@ -346,8 +346,8 @@ class _LoaderBasics:
class SourceLoader(_LoaderBasics):
def path_mtime(self, path):
- """Optional method that returns the modification time for the specified
- path.
+ """Optional method that returns the modification time (an int) for the
+ specified path, where path is a str.
Implementing this method allows the loader to read bytecode files.
@@ -355,7 +355,7 @@ class SourceLoader(_LoaderBasics):
raise NotImplementedError
def set_data(self, path, data):
- """Optional method which writes data to a file path.
+ """Optional method which writes data (bytes) to a file path (a str).
Implementing this method allows for the writing of bytecode files.