]> git.notmuchmail.org Git - notmuch/commit
python: str.decode() doesn't like kwargs in python 2.5
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Mon, 2 Jan 2012 16:07:53 +0000 (17:07 +0100)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Mon, 2 Jan 2012 16:07:53 +0000 (17:07 +0100)
commit228d8c0528311fa0e6c7ef675530b653019946de
treef643bd5e0d53befba1ca25b21cd29d95808d4b37
parentada246aa20c2f9b1e225bc50865e208d03296fc0
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>
bindings/python/notmuch/database.py
bindings/python/notmuch/filename.py
bindings/python/notmuch/message.py
bindings/python/notmuch/thread.py