Mercurial > cpython-lru_cache-weakref
diff Python/compile.c @ 77181:96ab78ef82a7
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
| author | Nick Coghlan <ncoghlan@gmail.com> |
|---|---|
| date | Sun, 27 May 2012 18:17:07 +1000 |
| parents | 1439e2d1f490 |
| children | 578066372485 |
line wrap: on
line diff
--- a/Python/compile.c Sun May 27 17:49:58 2012 +1000 +++ b/Python/compile.c Sun May 27 18:17:07 2012 +1000 @@ -1676,7 +1676,7 @@ return 0; } /* return the (empty) __class__ cell */ - str = PyUnicode_InternFromString("@__class__"); + str = PyUnicode_InternFromString("__class__"); if (str == NULL) { compiler_exit_scope(c); return 0;
