Python 3 fixes throughout the codebase.
The command used was: 2to3 -j 4 -w \ -f buffer \ -f idioms \ -f set_literal \ -f ws_comma \ -x except \ -x import \ -x imports \ -x long \ -x numliterals \ -x xrange \ .
Authored by: bugman 2014-04-22
Parent: [r22815]
Child: [r22817]