commit | 5136ac0ca21a05691978df8d0650f902c8ca3463 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Fri Jan 13 18:52:16 2012 +0100 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Fri Jan 13 18:52:16 2012 +0100 |
tree | 4b5569dad3f1b36f115c673602dde6ff49eae5e0 | |
parent | 1f918c1480a1566b774391bbc4ddf1d4153965a1 [diff] [blame] |
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.
diff --git a/Lib/pkgutil.py b/Lib/pkgutil.py index bdea23e..ef027be 100644 --- a/Lib/pkgutil.py +++ b/Lib/pkgutil.py
@@ -21,7 +21,7 @@ if magic != imp.get_magic(): return None - stream.read(4) # Skip timestamp + stream.read(8) # Skip timestamp and size return marshal.load(stream)