Fix error "zero length field name in format" for python 2.6.