diff Python/import.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 edb9ce3a6c2e
children b1f63680f5cb
line wrap: on
line diff
--- a/Python/import.c	Sun May 27 17:49:58 2012 +1000
+++ b/Python/import.c	Sun May 27 18:17:07 2012 +1000
@@ -106,6 +106,7 @@
        Python 3.3a0  3200 (__qualname__ added)
                      3210 (added size modulo 2**32 to the pyc header)
        Python 3.3a1  3220 (changed PEP 380 implementation)
+       Python 3.3a4  3230 (revert changes to implicit __class__ closure)
 */
 
 /* MAGIC must change whenever the bytecode emitted by the compiler may no
@@ -118,7 +119,7 @@
 #define STRIFY(name) QUOTE(name)
 #define MAJOR STRIFY(PY_MAJOR_VERSION)
 #define MINOR STRIFY(PY_MINOR_VERSION)
-#define MAGIC (3220 | ((long)'\r'<<16) | ((long)'\n'<<24))
+#define MAGIC (3230 | ((long)'\r'<<16) | ((long)'\n'<<24))
 #define TAG "cpython-" MAJOR MINOR;
 #define CACHEDIR "__pycache__"
 /* Current magic word and string tag as globals. */