Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Lib/importlib/_bootstrap_external.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,15 +785,16 @@ class SourceLoader(_LoaderBasics):

def path_mtime(self, path):
"""Optional method that returns the modification time (an int) for the
specified path, where path is a str.
specified path (a str).

Raises OSError when the path cannot be handled.
"""
raise OSError

def path_stats(self, path):
"""Optional method returning a metadata dict for the specified path
to by the path (str).
"""Optional method returning a metadata dict for the specified
path (a str).

Possible keys:
- 'mtime' (mandatory) is the numeric timestamp of last source
code modification;
Expand Down
Loading