diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2012-05-27 08:17:07 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2012-05-27 08:17:07 (GMT) |
commit | 0b43bcf5287d9494e3332b391350fcd32fe93f2c (patch) | |
tree | 4afedcf7ea32b14bb3c9a46fb8fd9532e9344bd0 /Python/compile.c | |
parent | 5c6eba3a93ce5fe989e372a8b12f535c72fc4e8f (diff) | |
download | cpython-0b43bcf5287d9494e3332b391350fcd32fe93f2c.zip cpython-0b43bcf5287d9494e3332b391350fcd32fe93f2c.tar.gz cpython-0b43bcf5287d9494e3332b391350fcd32fe93f2c.tar.bz2 |
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
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c index 10e9ad2..2a1b754 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; |