Fixed syntax error on Python 3.2; refs #20889.