diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2012-05-27 18:17:07 +1000 |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2012-05-27 18:17:07 +1000 |
commit | e26eba13bcc570d5e912886692d5030db7b74ac3 (patch) | |
tree | 99be6af20ea17cd7a7e9dd1a7feaf6874c7879e7 /Python/compile.c | |
parent | 3317d8ab64adb4e11a9f3d136f08cb35ccf35b5b (diff) | |
download | cpython-e26eba13bcc570d5e912886692d5030db7b74ac3.tar.gz |
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 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; |