Fixes incompatibiity with Python 2.6 str.format

Python 2.6 str.format() does not accept empty placeholders.

>>> '{}'.format('a')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: zero length field name in format