Hi everyone, I get a problem when using binhex module
Xavier Ho
contact at xavierho.com
Thu Aug 20 08:20:32 EDT 2009
On Thu, Aug 20, 2009 at 10:07 PM, Yan Jian <ballacky13 at 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*bB@%Z$3T0FR*KB5iJ6A*bB@%ZY@%
!!!:
I never used binhex however, so someone else might have a better insight.
Cheers,
Xav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090820/1fc55640/attachment-0001.html>
More information about the Python-list
mailing list