mirror of https://github.com/python/cpython
importlib: Fix typo in SourceLoader.path_stats docstring (GH-10052)
This commit is contained in:
parent
5ad36f9b21
commit
d7c3e5f0e8
|
@ -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;
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue