]> granicus.if.org Git - python/commit
Issue #1180193: When importing a module from a .pyc (or .pyo) file with
authorAntoine Pitrou <solipsis@pitrou.net>
Tue, 6 Jan 2009 18:10:47 +0000 (18:10 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Tue, 6 Jan 2009 18:10:47 +0000 (18:10 +0000)
commite96d4ea4e235645452ae8a6c8ab557d31d2bb485
tree20802b2b4711f32d21d422a7335cfdac7ddc4f34
parent3741bfdd3c789704f95b7969afa52f1053660e90
Issue #1180193: When importing a module from a .pyc (or .pyo) file with
an existing .py counterpart, override the co_filename attributes of all
code objects if the original filename is obsolete (which can happen if the
file has been renamed, moved, or if it is accessed through different paths).
Patch by Ziga Seilnacht and Jean-Paul Calderone.
Lib/test/test_import.py
Misc/NEWS
Python/import.c