How To Fix yum after Python Upgrade

I upgraded to Python 2.7 and yum promptly broke.
The quick fix is to edit the yum executable script and change the top line that invokes Python:
sudo vim which yum
CHANGE FROM:
#!/usr/bin/python
TO:
#!/usr/bin/python26
UPDATED August 2nd, 2016:
On one system, I had to use the following Python 2.4 fix instead, even though Python 2.6 was installed and available:
#!/usr/bin/python24
Leave Your Comment
All fields marked with "*" are required.