importlib: Fix typo in SourceLoader.path_stats docstring (GH-10052)

This commit is contained in:
Quentin 2018-10-25 13:04:28 +02:00 committed by Victor Stinner
parent 5ad36f9b21
commit d7c3e5f0e8
2 changed files with 1504 additions and 1504 deletions

View File

@ -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