From f669436189dd44a841caa9ab1ad97a3f7662bf58 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 10 Mar 2006 02:28:35 +0000 Subject: Um, I thought I'd already checked this in. Anyway, this is the changes to the with-statement so that __exit__ must return a true value in order for a pending exception to be ignored. The PEP (343) is already updated. --- Python/import.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Python/import.c') diff --git a/Python/import.c b/Python/import.c index f214ed5cd2..73051a2060 100644 --- a/Python/import.c +++ b/Python/import.c @@ -55,6 +55,7 @@ extern time_t PyOS_GetLastModificationTime(char *, FILE *); Python 2.5a0: 62071 Python 2.5a0: 62081 (ast-branch) Python 2.5a0: 62091 (with) + Python 2.5a0: 62092 (changed WITH_CLEANUP opcode) . */ #define MAGIC (62092 | ((long)'\r'<<16) | ((long)'\n'<<24)) -- cgit v1.2.1