Follow-up to r6171: don't use generator syntax, as we still support Python 2.3.
Follow-up to r6171: don't use generator syntax, as we still support Python 2.3.

Closes #6376.
pkdevbox/trac,pkdevbox/trac,pkdevbox/trac,pkdevbox/trac