brea...@magma.ca
unread,Feb 4, 2013, 2:15:31 PM2/4/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to winpe...@googlegroups.com
Hi Louie: I used /python/Tools/Scripts/2to3.py to convert both pexpect.py and winpexpect.py, and could then import both modules without error. The setup.py script tries to do the conversion, but gets errors, possibly due to the fix_types setting. Also, the setuptools I got from the net for Python V3 is requesting more testing, so this is another uncertainty.
When I started running scripts, I got run time errors and made some changes to pexpect.py so that winpexpect.py would work:
C:\Python33\Lib\site-packages>diff pexpect.py.bak pexpect.py
1220c1220
< if type(p) in str:
---
> if type(p) is str:
1781,1782c1781,1782
< #pathlist = p.split (os.pathsep)
< pathlist = string.split (p, os.pathsep)
---
> pathlist = p.split (os.pathsep)
> # pathlist = string.split (p, os.pathsep)