]> git.notmuchmail.org Git - notmuch/commit
python: Set status in the class definitions
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Wed, 5 Oct 2011 15:57:46 +0000 (17:57 +0200)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Wed, 5 Oct 2011 15:57:46 +0000 (17:57 +0200)
commitdba9c313358c5852572a5e803500a1711735e775
tree1d6cfa1ea717365f534464e0ce5af6231bba4026
parent5e75398c80ab3008ca0ecd60544897dc5e546e47
python: Set status in the class definitions

Technically, this is a superfluous change, as the self.status variable
currently gets set in NotmuchErrors's __new__ function. However, in the
long run I would like to get rid of the weird __new__ implementation which
might be somewhat confusing for users (NotmuchError(status) returns a
different class, e.g. OutOfMemoryError)

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
bindings/python/notmuch/globals.py