Increment magic for older versions of Python. (quixote/ptl_compile.py)
Neil Schemenauer <nascheme-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]> Thu, 09 Jan 2003 09:56:13 -0500
| Newsgroups | gmane.comp.web.quixote.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /home/cvs/quixote
In directory hewson:/tmp/cvs-serv21646
Modified Files:
ptl_compile.py
Log Message:
Increment magic for older versions of Python.
Index: ptl_compile.py
===================================================================
RCS file: /home/cvs/quixote/ptl_compile.py,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- ptl_compile.py 9 Jan 2003 00:13:27 -0000 1.29
+++ ptl_compile.py 9 Jan 2003 14:56:11 -0000 1.30
@@ -233,13 +233,13 @@
PTL_EXT = ".ptl"
PTLC_EXT = ".ptlc"
if sys.hexversion >= 0x20300a1:
- PTLC_MAGIC = "PTLC\x01\x01"
+ PTLC_MAGIC = "PTLC\x04\x00"
elif sys.hexversion >= 0x20200b1:
- PTLC_MAGIC = "PTLC\x00\x10"
+ PTLC_MAGIC = "PTLC\x03\x00"
elif sys.hexversion >= 0x20100b1:
- PTLC_MAGIC = "PTLC\x00\x08"
+ PTLC_MAGIC = "PTLC\x02\x00"
elif sys.hexversion >= 0x20000b1:
- PTLC_MAGIC = "PTLC\x00\x07"
+ PTLC_MAGIC = "PTLC\x01\x00"
else:
raise RuntimeError, 'python too old'