Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 2395:42b5689a7409 legacy-trunk
magic number changes of CR/LF are swapped
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sun, 19 Feb 1995 15:54:18 +0000 |
| parents | d65c485e0ad8 |
| children | 6a9ecb05c679 |
line wrap: on
line diff
--- a/Python/import.c Sun Feb 19 15:52:17 1995 +0000 +++ b/Python/import.c Sun Feb 19 15:54:18 1995 +0000 @@ -48,7 +48,9 @@ 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 */
