]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/python/notmuch/filename.py
py3k: The ConfigParser module has been renamed to configparser
[notmuch] / bindings / python / notmuch / filename.py
index 077754e01c15109a76c28062a8dbfd84e5883144..a7cd7e63d44bf03076b5e21087e77ae425761a7a 100644 (file)
@@ -18,7 +18,7 @@ Copyright 2010 Sebastian Spaeth <Sebastian@SSpaeth.de>'
 """
 from ctypes import c_char_p
 from notmuch.globals import (nmlib, STATUS, NotmuchError,
-    NotmuchFilenamesP, NotmuchMessagesP, NotmuchMessageP)
+    NotmuchFilenamesP, NotmuchMessageP)
 
 
 class Filenames(object):
@@ -99,6 +99,9 @@ class Filenames(object):
         self._files = None
 
     def __str__(self):
+        return unicode(self).encode('utf-8')
+
+    def __unicode__(self):
         """Represent Filenames() as newline-separated list of full paths
 
         .. note:: As this iterates over the filenames, we will not be