[pypy-svn] r71018 - pypy/trunk/pypy/interpreter
arigo at codespeak.net
arigo at codespeak.net
Sun Jan 31 20:15:46 CET 2010
Author: arigo
Date: Sun Jan 31 20:15:45 2010
New Revision: 71018
Modified:
pypy/trunk/pypy/interpreter/pycode.py
Log:
Bump the magic number of our .pyc files. Unless I am missing something,
this is needed because r68926 added two new code object flags. If an
old .pyc file is loaded by accident, its code objects will miss the new
flags.
Modified: pypy/trunk/pypy/interpreter/pycode.py
==============================================================================
--- pypy/trunk/pypy/interpreter/pycode.py (original)
+++ pypy/trunk/pypy/interpreter/pycode.py Sun Jan 31 20:15:45 2010
@@ -29,7 +29,7 @@
# Magic numbers for the bytecode version in code objects.
# See comments in pypy/module/imp/importing.
cpython_magic, = struct.unpack("<i", imp.get_magic()) # host magic number
-default_magic = (62131+2) | 0x0a0d0000 # this PyPy's magic
+default_magic = (62141+2) | 0x0a0d0000 # this PyPy's magic
# (62131=CPython 2.5.1)
# cpython_code_signature helper
More information about the Pypy-commit
mailing list