[Python-3000-checkins] r57709 - python/branches/py3k/Lib/plat-mac/aepack.py

neal.norwitz python-3000-checkins at python.org
Thu Aug 30 08:32:09 CEST 2007


Author: neal.norwitz
Date: Thu Aug 30 08:32:09 2007
New Revision: 57709

Modified:
   python/branches/py3k/Lib/plat-mac/aepack.py
Log:
Try to fix test_aepack by comparing bytes with bytes.

Modified: python/branches/py3k/Lib/plat-mac/aepack.py
==============================================================================
--- python/branches/py3k/Lib/plat-mac/aepack.py	(original)
+++ python/branches/py3k/Lib/plat-mac/aepack.py	Thu Aug 30 08:32:09 2007
@@ -104,7 +104,7 @@
         # 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):


More information about the Python-3000-checkins mailing list