summaryrefslogtreecommitdiffstats
path: root/Python/import.c
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2012-05-27 08:17:07 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2012-05-27 08:17:07 (GMT)
commit0b43bcf5287d9494e3332b391350fcd32fe93f2c (patch)
tree4afedcf7ea32b14bb3c9a46fb8fd9532e9344bd0 /Python/import.c
parent5c6eba3a93ce5fe989e372a8b12f535c72fc4e8f (diff)
downloadcpython-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/import.c')
-rw-r--r--Python/import.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c
index ab6ff86..98d9dc5 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -106,6 +106,7 @@ typedef unsigned short mode_t;
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 @@ typedef unsigned short mode_t;
#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. */