commit | 28a691b7fdde1b8abafa4c4a5025e6bfa44f48b9 | [log] [tgz] |
---|---|---|
author | Barry Warsaw <barry@python.org> | Sat Apr 17 00:19:56 2010 +0000 |
committer | Barry Warsaw <barry@python.org> | Sat Apr 17 00:19:56 2010 +0000 |
tree | ca0098063694e0f91d1bcd785d0044e96e1bf389 | |
parent | 0e59cc3fc347582d8625050de258a2dd6b87f978 [diff] [blame] |
PEP 3147
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 2bdef98..cc617be 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c
@@ -1155,6 +1155,8 @@ Py_DECREF(f); return -1; } + if (PyDict_SetItemString(d, "__cached__", Py_None) < 0) + return -1; set_file_name = 1; Py_DECREF(f); }