diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2011-12-14 11:58:21 +0100 |
---|---|---|
committer | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2012-01-02 16:11:52 +0100 |
commit | 9c32ee5372d36954d81610eaccc68db1febe0929 (patch) | |
tree | a1501adca6c91c6d95d07bb807517f2eea0e662a /bindings/python | |
parent | 4ed0362d41e62d5254be6cfb46e0c0c9fd9de0a0 (diff) |
py3k: All strings are unicode strings in py3k
Diffstat (limited to 'bindings/python')
-rw-r--r-- | bindings/python/notmuch/globals.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bindings/python/notmuch/globals.py b/bindings/python/notmuch/globals.py index 54a49b2d..99e6a10d 100644 --- a/bindings/python/notmuch/globals.py +++ b/bindings/python/notmuch/globals.py @@ -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 |