Commit f40080f2 authored by Neal Norwitz's avatar Neal Norwitz

Try to fix test_aepack by comparing bytes with bytes.

parent 9a92310f
......@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment