On Thu, Aug 20, 2009 at 10:07 PM, Yan Jian <ballack...@gmail.com> wrote:

>
> Does anyone encounter similar situation. Thank you for your help?
>

Yeah, in Python 3.1 I get this:

 Traceback (most recent call last):
  File "test.py", line 6, in <module>
    binhex.binhex(file, sys.stdout)
  File "c:\Python31\lib\binhex.py", line 228, in binhex
    ofp = BinHex(finfo, out)
  File "c:\Python31\lib\binhex.py", line 149, in __init__
    ofp.write(b'(This file must be converted with BinHex 4.0)\r\r:')
TypeError: write() argument 1 must be str, not bytes

Python 2.6.2 runs fine though:

:"QPZ,R4iG!"849K82j!%!*!&&3#3"1#$6a...@%z$3t0fr*kb5ij6a*bb@%...@%
!!!:

I never used binhex however, so someone else might have a better insight.

Cheers,
Xav
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to