python: str.decode() doesn't like kwargs in python 2.5 patches/0.11-1_bpo60+1
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Mon, 2 Jan 2012 16:07:53 +0000 (17:07 +0100)
committerDavid Bremner <bremner@debian.org>
Sat, 28 Jan 2012 00:09:07 +0000 (20:09 -0400)
commit02f1c3b2120033af5b45b109d35ba73775219abf
tree804b54bd091a407cf9aceb145d9fa40893d53e37
parentf7b62d3545f779ddb01be4bbd9e5e3f8cb4dcdcb
python: str.decode() doesn't like kwargs in python 2.5

Recent changes introduced lots of unicodification of strings, mostly in
the form of .decode('utf-8', errors='ignore'). However, python 2.5 does
not like the errors keyword argument and complains. It does work when
used as a simple arg though, so that's what this patch does.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Backported to 0.11 by David Bremner <david@tethera.net>

Conflicts:

bindings/python/notmuch/database.py
bindings/python/notmuch/filename.py
bindings/python/notmuch/message.py
bindings/python/notmuch/thread.py
bindings/python/notmuch/message.py
bindings/python/notmuch/thread.py