python3.3 + except KeyboardInterrupt, e: ^ SyntaxError: invalid syntax

0

Today I have faced yum error, after installing python3.3 instead of deafult python on the server. After installing the “yum” command is getting failed. So I have revert the python to default and enabled symlink for python3. Now the server has python3.3 and python2.6.6

root@ [/usr/bin]# yum install gcc
File “/usr/bin/yum”, line 30
except KeyboardInterrupt, e:
SyntaxError: invalid syntax

Enabled a symlink for python3

root@ [~]# ls -l /usr/bin/python
lrwxrwxrwx. 1 root root 9 Oct 24 00:06 /usr/bin/python -> python2.6*
root@ [~]# ls -l /usr/bin/python3
lrwxrwxrwx. 1 root root 32 Oct 24 00:15 /usr/bin/python3 -> /usr/local/python3/bin/python3.3*

root@ [~]# which python
/usr/bin/python
root@ [~]# which python3
/usr/bin/python3

root@ [~]# python -V
Python 2.6.6
root@ [~]# python3 -V
Python 3.3.2
root@ [~]# python3
Python 3.3.2 (default, Oct 16 2014, 06:30:05)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux
Type “help”, “copyright”, “credits” or “license” for more information.

root@ [~]# python
Python 2.6.6 (r266:84292, Jan 22 2014, 09:42:36)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.