[Python-checkins] r42561 - python/trunk/Lib/plat-mac/applesingle.py

jack.jansen python-checkins at python.org
Thu Feb 23 15:54:31 CET 2006


Author: jack.jansen
Date: Thu Feb 23 15:54:30 2006
New Revision: 42561
Modified:
 python/trunk/Lib/plat-mac/applesingle.py
Log:
Got rid of byte-order dependencies.
Modified: python/trunk/Lib/plat-mac/applesingle.py
==============================================================================
--- python/trunk/Lib/plat-mac/applesingle.py	(original)
+++ python/trunk/Lib/plat-mac/applesingle.py	Thu Feb 23 15:54:30 2006
@@ -25,14 +25,14 @@
 pass
 
 # File header format: magic, version, unused, number of entries
-AS_HEADER_FORMAT="LL16sh"
+AS_HEADER_FORMAT=">ll16sh"
 AS_HEADER_LENGTH=26
 # The flag words for AppleSingle
 AS_MAGIC=0x00051600
 AS_VERSION=0x00020000
 
 # Entry header format: id, offset, length
-AS_ENTRY_FORMAT="lll"
+AS_ENTRY_FORMAT=">lll"
 AS_ENTRY_LENGTH=12
 
 # The id values


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /