]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
backport of byteorder issues in applesingle
authorRonald Oussoren <ronaldoussoren@mac.com>
Fri, 26 May 2006 09:13:42 +0000 (09:13 +0000)
committerRonald Oussoren <ronaldoussoren@mac.com>
Fri, 26 May 2006 09:13:42 +0000 (09:13 +0000)
Lib/plat-mac/applesingle.py

index 7bbe8af8cc126fe7f86478f257cd09f2b261acfd..77774182a8ff97b5e2ffe422a0be9bddcda8b1f3 100644 (file)
@@ -25,14 +25,14 @@ class Error(ValueError):
     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