diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2007-08-30 06:32:09 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2007-08-30 06:32:09 (GMT) |
commit | f40080f247710d060fb263358a8d3e282e34d065 (patch) | |
tree | 65ab468aacccd86e7e6e03324b3190022915bf58 /Lib | |
parent | 9a92310f87280af246ec3108b7505870203555c5 (diff) | |
download | cpython-f40080f247710d060fb263358a8d3e282e34d065.zip cpython-f40080f247710d060fb263358a8d3e282e34d065.tar.gz cpython-f40080f247710d060fb263358a8d3e282e34d065.tar.bz2 |
Try to fix test_aepack by comparing bytes with bytes.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/plat-mac/aepack.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/plat-mac/aepack.py b/Lib/plat-mac/aepack.py index 726a7de..3caf2f5 100644 --- a/Lib/plat-mac/aepack.py +++ b/Lib/plat-mac/aepack.py @@ -104,7 +104,7 @@ def pack(x, forcetype = None): # See http://developer.apple.com/documentation/Carbon/Reference/Apple_Event_Manager/Reference/reference.html#//apple_ref/doc/constant_group/typeUnicodeText # for the possible encodings. data = x.encode('utf16') - if data[:2] == '\xfe\xff': + if data[:2] == b'\xfe\xff': data = data[2:] return AE.AECreateDesc(b'utxt', data) if isinstance(x, list): |