On Thu, Aug 20, 2009 at 10:07 PM, Yan Jian <span dir="ltr"><<a href="mailto:ballacky13@gmail.com">ballacky13@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Does anyone encounter similar situation. Thank you for your help?
<br></blockquote><div><br>Yeah, in Python 3.1 I get this:<br><br><div style="margin-left: 40px;"> Traceback (most recent call last):<br> File "test.py", line 6, in <module><br> binhex.binhex(file, sys.stdout)<br>
File "c:\Python31\lib\binhex.py", line 228, in binhex<br> ofp = BinHex(finfo, out)<br> File "c:\Python31\lib\binhex.py", line 149, in __init__<br> ofp.write(b'(This file must be converted with BinHex 4.0)\r\r:')<br>
TypeError: write() argument 1 must be str, not bytes<br><br></div>Python 2.6.2 runs fine though:<br><br><div style="margin-left: 40px;">:"QPZ,R4iG!"849K82j!%!*!&&3#3"1#$6A*bB@%Z$3T0FR*KB5iJ6A*bB@%ZY@%<br>
!!!:<br></div><br>I never used binhex however, so someone else might have a better insight.<br><br>Cheers,<br>Xav<br></div></div>