From: Guido van Rossum Date: Sun, 19 Feb 1995 15:54:18 +0000 (+0000) Subject: magic number changes of CR/LF are swapped X-Git-Tag: v1.2b4~200 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c388068431943e7d1760aa52ed06fd6eb7987e39;p=thirdparty%2FPython%2Fcpython.git magic number changes of CR/LF are swapped --- diff --git a/Python/import.c b/Python/import.c index 05d2c557bd19..155ce34b37c5 100644 --- a/Python/import.c +++ b/Python/import.c @@ -48,7 +48,9 @@ extern int verbose; /* Defined in pythonrun.c */ extern long getmtime(); /* In getmtime.c */ /* Magic word to reject .pyc files generated by other Python versions */ -#define MAGIC 0x999903L /* Increment by one for each incompatible change */ +/* Increment by one for each incompatible change */ +/* MPW swaps CR and LF, so their value is incorporated as well */ +#define MAGIC (0x999903L ^ (('\n'^10L)<<16) ^ (('\r'^13L)<<8)) object *import_modules; /* This becomes sys.modules */