From: Thomas Wouters Date: Sun, 23 Jul 2000 09:20:08 +0000 (+0000) Subject: Oops. One of last nights ANSIfication patches accidentily upped the bytecode X-Git-Tag: v2.0b1~761 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2f2370bfc99e95a4f5edaf4d29cd47afd54fb1b7;p=thirdparty%2FPython%2Fcpython.git Oops. One of last nights ANSIfication patches accidentily upped the bytecode MAGIC number. When updating it next time, be sure it's higher than 50715 * constants. (Shouldn't be a problem if everyone keeps to the proper algorithm.) --- diff --git a/Python/import.c b/Python/import.c index 46c846973968..3c5f6246e3a2 100644 --- a/Python/import.c +++ b/Python/import.c @@ -66,7 +66,7 @@ extern time_t PyOS_GetLastModificationTime(char *, FILE *); /* XXX Perhaps the magic number should be frozen and a version field added to the .pyc file header? */ /* New way to come up with the magic number: (YEAR-1995), MONTH, DAY */ -#define MAGIC (50715 | ((long)'\r'<<16) | ((long)'\n'<<24)) +#define MAGIC (50428 | ((long)'\r'<<16) | ((long)'\n'<<24)) /* Magic word as global; note that _PyImport_Init() can change the value of this global to accommodate for alterations of how the