Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 74358:87331661042b
Issue #13645: pyc files now contain the size of the corresponding source
code, to avoid timestamp collisions (especially on filesystems with a low
timestamp resolution) when checking for freshness of the bytecode.
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Fri, 13 Jan 2012 18:52:16 +0100 |
| parents | 021e5bb297d1 |
| children | a321ffb21367 |
line wrap: on
line diff
--- a/Python/pythonrun.c Fri Jan 13 08:45:55 2012 -0500 +++ b/Python/pythonrun.c Fri Jan 13 18:52:16 2012 +0100 @@ -1844,6 +1844,8 @@ "Bad magic number in .pyc file"); return NULL; } + /* Skip mtime and size */ + (void) PyMarshal_ReadLongFromFile(fp); (void) PyMarshal_ReadLongFromFile(fp); v = PyMarshal_ReadLastObjectFromFile(fp); fclose(fp);
