diff options
author | Guido van Rossum <guido@python.org> | 2007-05-27 09:20:49 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-05-27 09:20:49 (GMT) |
commit | ff12e08273ad4d3f7708c92bc1d57684b3f9859a (patch) | |
tree | 90fbbdadd1cdbefbd456bb6881cb989167e56025 /Lib/binhex.py | |
parent | a01a8b65e555be8212691d96671fc2175705cc16 (diff) | |
download | cpython-ff12e08273ad4d3f7708c92bc1d57684b3f9859a.zip cpython-ff12e08273ad4d3f7708c92bc1d57684b3f9859a.tar.gz cpython-ff12e08273ad4d3f7708c92bc1d57684b3f9859a.tar.bz2 |
Make the binhex test pass on Darwin.
Grr. Do we really want to support this module?
Diffstat (limited to 'Lib/binhex.py')
-rw-r--r-- | Lib/binhex.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/binhex.py b/Lib/binhex.py index ac1cb18..a8abf1b 100644 --- a/Lib/binhex.py +++ b/Lib/binhex.py @@ -191,8 +191,8 @@ class BinHex: nl = len(name) if nl > 63: raise Error, 'Filename too long' - d = bytes(chr(nl)) + bytes(name) + b'\0' - d2 = bytes(finfo.Type, "latin-1") + bytes(finfo.Creator, "latin-1") + d = bytes([nl]) + bytes(name) + b'\0' + d2 = bytes(finfo.Type) + bytes(finfo.Creator) # Force all structs to be packed with big-endian d3 = struct.pack('>h', finfo.Flags) @@ -420,8 +420,8 @@ class HexBin: self.FName = fname self.FInfo = FInfo() - self.FInfo.Creator = creator - self.FInfo.Type = type + self.FInfo.Creator = str8(creator) + self.FInfo.Type = str8(type) self.FInfo.Flags = flags self.state = _DID_HEADER |