summaryrefslogtreecommitdiffstats
path: root/Lib/importlib
diff options
context:
space:
mode:
authorQuentin <quentin.agren@sciencespo.fr>2018-10-25 11:04:28 (GMT)
committerVictor Stinner <vstinner@redhat.com>2018-10-25 11:04:28 (GMT)
commitd7c3e5f0e89cb807093e33165815c8bbd3c00f4b (patch)
tree1cf91a7ea5a3b1757f7a373441748f4783f40f4c /Lib/importlib
parent5ad36f9b21a3aa3b2265b1b43d73522cc3322df2 (diff)
downloadcpython-d7c3e5f0e89cb807093e33165815c8bbd3c00f4b.zip
cpython-d7c3e5f0e89cb807093e33165815c8bbd3c00f4b.tar.gz
cpython-d7c3e5f0e89cb807093e33165815c8bbd3c00f4b.tar.bz2
importlib: Fix typo in SourceLoader.path_stats docstring (GH-10052)
Diffstat (limited to 'Lib/importlib')
-rw-r--r--Lib/importlib/_bootstrap_external.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py
index 6ef6bf8..0b742ba 100644
--- a/Lib/importlib/_bootstrap_external.py
+++ b/Lib/importlib/_bootstrap_external.py
@@ -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;