diff options
author | Guido van Rossum <guido@python.org> | 2002-08-31 15:16:14 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-08-31 15:16:14 (GMT) |
commit | f689492070e9640a6d9e0e4629f78d5748b9437e (patch) | |
tree | b12c0fbc98be7ee4eb78b13d654ae37e0804fdb7 | |
parent | b2d2bc9a55f0c3c38e22ba668e08876c09227284 (diff) | |
download | cpython-f689492070e9640a6d9e0e4629f78d5748b9437e.zip cpython-f689492070e9640a6d9e0e4629f78d5748b9437e.tar.gz cpython-f689492070e9640a6d9e0e4629f78d5748b9437e.tar.bz2 |
Because MWH changed the bytecode again, moved the magic number *back*
to 62011. This should get the snake-farm to throw away its old .pyc
files, amongst others.
-rw-r--r-- | Python/import.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c index 36ca705..52e6c05 100644 --- a/Python/import.c +++ b/Python/import.c @@ -52,6 +52,10 @@ extern time_t PyOS_GetLastModificationTime(char *, FILE *); MWH, 2002-08-03: Removed SET_LINENO. Couldn't be bothered figuring out the MAGIC schemes, so just incremented it by 10. + GvR, 2002-08-31: Because MWH changed the bytecode again, moved the + magic number *back* to 62011. This should get the snake-farm to + throw away its old .pyc files, amongst others. + Known values: Python 1.5: 20121 Python 1.5.1: 20121 @@ -64,8 +68,9 @@ extern time_t PyOS_GetLastModificationTime(char *, FILE *); Python 2.2: 60717 Python 2.3a0: 62011 Python 2.3a0: 62021 + Python 2.3a0: 62011 (!) */ -#define MAGIC (62021 | ((long)'\r'<<16) | ((long)'\n'<<24)) +#define MAGIC (62011 | ((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 |