Skip to content
Closed
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
4 changes: 2 additions & 2 deletions Lib/importlib/_bootstrap_external.py
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ def get_code(self, fullname):
except OSError:
pass
else:
source_mtime = int(st['mtime'])
source_mtime = st['mtime_ns']
try:
data = self.get_data(bytecode_path)
except OSError:
Expand Down Expand Up @@ -1231,7 +1231,7 @@ class SourceFileLoader(FileLoader, SourceLoader):
def path_stats(self, path):
"""Return the metadata for the path."""
st = _path_stat(path)
return {'mtime': st.st_mtime, 'size': st.st_size}
return {'mtime_ns': st.st_mtime_ns, 'size': st.st_size}

def _cache_bytecode(self, source_path, bytecode_path, data):
# Adapt between the two APIs
Expand Down