]> git.cworth.org Git - notmuch/blobdiff - bindings/python/notmuch/message.py
python: str.decode() doesn't like kwargs in python 2.5
[notmuch] / bindings / python / notmuch / message.py
index ce8e7181b2743f162843c8f2d387baf3515d3f9c..49a58d1fb2cfd8e10e6c6db6850151f0dc0fe48f 100644 (file)
@@ -427,7 +427,7 @@ class Message(object):
         header = Message._get_header(self._msg, header)
         if header == None:
             raise NotmuchError(STATUS.NULL_POINTER)
-        return header.decode('UTF-8', errors='ignore')
+        return header.decode('UTF-8', 'ignore')
 
     def get_filename(self):
         """Returns the file path of the message file