spaetz/offlineimap — pull request #44 by djl (2012-05-18 09:51:56+00:00)
Title: Fix str.format() calls for Python 2.6.

In 5ef69e95c02f69f0a13818d418e6a5768bd4be04, b6807355b5133dae5c669381aa9965f44c38b7a0 and 79ddb0be71fb83968dc578969cb06405439f913e changes were made which break compatibility with Python <= 2.6 when the `str.format()` method is called. See [offlineimap/folder/Base.py](https://github.com/spaetz/offlineimap/blob/master/offlineimap/folder/Base.py#L389) for an example.

According to the docs for both [2.x](http://docs.python.org/library/string.html#format-examples) and [3.x](http://docs.python.org/py3k/library/stdtypes.html#str.format) the correct syntax should be:

'{0}, {1}, {2}'.format('a', 'b', 'c')

Instead of the current syntax:

'{}, {}, {}'.format('a', 'b', 'c')

This commit fixes the syntax, bringing back 2.6 compatibility :)