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):
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to