add index to format to support python2.6 (#5104)
Merge pull request #5105 from akrherz/1.x

add index to format to support py2.6, closes #5101