[issue19484] Idle crashes when opening file

Ned Deily report at bugs.python.org
Sun Nov 3 22:27:05 CET 2013


Ned Deily added the comment:

P.S. If you feel comfortable with using the command line, you *could* install the fix for Issue19426 yourself into 2.7.6rc1 if you can't wait for the final release.  For the OS X python.org installers, something like this should work from a user login with administrator privileges (sudo may ask for your password):

cd ~/Downloads
curl -O http://hg.python.org/cpython/raw-file/7fde94ad5df4/Lib/idlelib/IOBinding.py
cd /Library/Frameworks/Python.framework/Versions/2.7
cd ./lib/python2.7/idlelib
diff ~/Downloads/IOBinding.py ./IOBinding.py
sudo cp -p ./IOBinding.py ./IOBinding.py.ORIGINAL
sudo cp ~/Downloads/IOBinding.py ./IOBinding.py
sudo rm -f ./IOBinding.pyc ./IOBinding.pyo
sudo chmod 664 ./IOBinding.py

The output from the diff command should look like this:

$ diff ~/Downloads/IOBinding.py IOBinding.py
128c128
<     lst = str.split("\n", 2)[:2]
---
>     str = str.split("\n", 2)[:2]

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19484>
_______________________________________


More information about the Python-bugs-list mailing list