Try to fix test_aepack by comparing bytes with bytes.

This commit is contained in:
Neal Norwitz 2007-08-30 06:32:09 +00:00
parent 9a92310f87
commit f40080f247
1 changed files with 1 additions and 1 deletions

View File

@ -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):