Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1cb6cd0

Browse files
committed
As Marc-Andre Lemburg points out, the magic number needs to change
because we've added Unicode marshalling to the repertoire.
1 parent 40ee7ac commit 1cb6cd0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/import.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ extern long PyOS_GetLastModificationTime(); /* In getmtime.c */
8484
/* XXX Perhaps the magic number should be frozen and a version field
8585
added to the .pyc file header? */
8686
/* New way to come up with the magic number: (YEAR-1995), MONTH, DAY */
87-
#define MAGIC (20121 | ((long)'\r'<<16) | ((long)'\n'<<24))
87+
#define MAGIC (50428 | ((long)'\r'<<16) | ((long)'\n'<<24))
8888

8989
/* See _PyImport_FixupExtension() below */
9090
static PyObject *extensions = NULL;

0 commit comments

Comments
 (0)