Merged revisions 85398 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85398 | benjamin.peterson | 2010-10-12 20:04:36 -0500 (Tue, 12 Oct 2010) | 1 line

  account for the module __dict__ being cleared when its module is
........
This commit is contained in:
Benjamin Peterson 2010-10-13 01:10:16 +00:00
parent 1e1a8c729b
commit 25def7d9b0
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ def run_path(path_name, init_globals=None, run_name=None):
_ModifiedArgv0(path_name):
mod_globals = temp_module.module.__dict__
return _run_code(code, mod_globals, init_globals,
run_name, fname, loader, pkg_name)
run_name, fname, loader, pkg_name).copy()
finally:
try:
sys.path.remove(path_name)