From 0b43bcf5287d9494e3332b391350fcd32fe93f2c Mon Sep 17 00:00:00 2001 From: Nick Coghlan Date: Sun, 27 May 2012 18:17:07 +1000 Subject: Close #14857: fix regression in references to PEP 3135 implicit __class__ closure variable. Reopens issue #12370, but also updates unittest.mock to workaround that issue --- Python/compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/compile.c') diff --git a/Python/compile.c b/Python/compile.c index 10e9ad27f5..2a1b754635 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -1676,7 +1676,7 @@ compiler_class(struct compiler *c, stmt_ty s) return 0; } /* return the (empty) __class__ cell */ - str = PyUnicode_InternFromString("@__class__"); + str = PyUnicode_InternFromString("__class__"); if (str == NULL) { compiler_exit_scope(c); return 0; -- cgit v1.2.1