From: Neal Norwitz Date: Thu, 30 Aug 2007 06:32:09 +0000 (+0000) Subject: Try to fix test_aepack by comparing bytes with bytes. X-Git-Tag: v3.0a1~94 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f40080f247710d060fb263358a8d3e282e34d065;p=python Try to fix test_aepack by comparing bytes with bytes. --- diff --git a/Lib/plat-mac/aepack.py b/Lib/plat-mac/aepack.py index 726a7de82e..3caf2f5e00 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):