Issue #1180193: When importing a module from a .pyc (or .pyo) file with
commit32e1e5e5c805bead41b025efc8b7f48806064c37
authorantoine.pitrou <antoine.pitrou@6015fed2-1504-0410-9fe1-9d1591cc4771>
Tue, 6 Jan 2009 18:10:47 +0000 (6 18:10 +0000)
committerantoine.pitrou <antoine.pitrou@6015fed2-1504-0410-9fe1-9d1591cc4771>
Tue, 6 Jan 2009 18:10:47 +0000 (6 18:10 +0000)
tree8bed8701cdb8f5a359dad7510fe391594dc36ad1
parentf488439db6312d17e5f998ae6aeca265d3b76c29
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.

git-svn-id: http://svn.python.org/projects/python/trunk@68360 6015fed2-1504-0410-9fe1-9d1591cc4771
Lib/test/test_import.py
Misc/NEWS
Python/import.c