diff options
author | Guido van Rossum <guido@python.org> | 1995-02-19 15:54:18 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-02-19 15:54:18 (GMT) |
commit | c388068431943e7d1760aa52ed06fd6eb7987e39 (patch) | |
tree | 8b6c7ae8ca5a3be92d1e7e0ee2a98fd4f8a57abe /Python | |
parent | 8c89a6fdc7142941150cd62253a07d1f79865b49 (diff) | |
download | cpython-c388068431943e7d1760aa52ed06fd6eb7987e39.zip cpython-c388068431943e7d1760aa52ed06fd6eb7987e39.tar.gz cpython-c388068431943e7d1760aa52ed06fd6eb7987e39.tar.bz2 |
magic number changes of CR/LF are swapped
Diffstat (limited to 'Python')
-rw-r--r-- | Python/import.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c index 05d2c55..155ce34 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 */ |