summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-10-13 01:10:16 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-10-13 01:10:16 (GMT)
commit25def7d9b032a7f1afe86806b1551aa2a79683e5 (patch)
treebce9197ac9ee78488123a6809c8413e28347f289
parent1e1a8c729bee2e98cfa56ed7362c4906badb44f7 (diff)
downloadcpython-25def7d9b032a7f1afe86806b1551aa2a79683e5.zip
cpython-25def7d9b032a7f1afe86806b1551aa2a79683e5.tar.gz
cpython-25def7d9b032a7f1afe86806b1551aa2a79683e5.tar.bz2
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 ........
-rw-r--r--Lib/runpy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/runpy.py b/Lib/runpy.py
index 06c5a87..f635c4b 100644
--- a/Lib/runpy.py
+++ b/Lib/runpy.py
@@ -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)