(Pardon me if this is a known issue, or if it is a trivial problem.)
I was trying to install hgsvn 0.1.9 on my Centos 5.x box hgsvn, and it would fail in common.py, line 302.
Turns out the 'try except finally' statement is offending this version of Python.
Please change the block. Add a additional try statement.