]> git.notmuchmail.org Git - notmuch/commitdiff
py3k: All strings are unicode strings in py3k
authorJustus Winter <4winter@informatik.uni-hamburg.de>
Wed, 14 Dec 2011 10:58:21 +0000 (11:58 +0100)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Mon, 2 Jan 2012 15:11:52 +0000 (16:11 +0100)
bindings/python/notmuch/globals.py

index 54a49b2d3f16895a8a8ce0b9ffc459b58a7cadf2..99e6a10d1b38e7d43766ff9ba41e5249ce53ab5c 100644 (file)
@@ -51,7 +51,7 @@ class Status(Enum):
         """Get a (unicode) string representation of a notmuch_status_t value."""
         # define strings for custom error messages
         if status == STATUS.NOT_INITIALIZED:
-            return u"Operation on uninitialized object impossible."
+            return "Operation on uninitialized object impossible."
         return unicode(Status._status2str(status))
 
 STATUS = Status(['SUCCESS',
@@ -142,7 +142,7 @@ class NotmuchError(Exception):
         elif self.status is not None:
             return STATUS.status2str(self.status)
         else:
-            return u'Unknown error'
+            return 'Unknown error'
 
 
 # List of Subclassed exceptions that correspond to STATUS values and are