From: Ronald Oussoren Date: Fri, 26 May 2006 09:13:42 +0000 (+0000) Subject: backport of byteorder issues in applesingle X-Git-Tag: v2.4.4c1~216 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14e4ca4dde031b335e176954ab3d3a41671e9432;p=thirdparty%2FPython%2Fcpython.git backport of byteorder issues in applesingle --- diff --git a/Lib/plat-mac/applesingle.py b/Lib/plat-mac/applesingle.py index 7bbe8af8cc12..77774182a8ff 100644 --- a/Lib/plat-mac/applesingle.py +++ b/Lib/plat-mac/applesingle.py @@ -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