General Python 3 fixes via the 2to3 script.
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-07-02
Parent: [r24389]
Child: [r24391]