Kaydet (Commit) 25def7d9 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

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
........
üst 1e1a8c72
...@@ -261,7 +261,7 @@ def run_path(path_name, init_globals=None, run_name=None): ...@@ -261,7 +261,7 @@ def run_path(path_name, init_globals=None, run_name=None):
_ModifiedArgv0(path_name): _ModifiedArgv0(path_name):
mod_globals = temp_module.module.__dict__ mod_globals = temp_module.module.__dict__
return _run_code(code, mod_globals, init_globals, return _run_code(code, mod_globals, init_globals,
run_name, fname, loader, pkg_name) run_name, fname, loader, pkg_name).copy()
finally: finally:
try: try:
sys.path.remove(path_name) sys.path.remove(path_name)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment