python 2.6 string format

In python 2.6 get error "ValueError: zero length field name in format"