]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/python/notmuch/query.py
python: move the exception classes into error.py
[notmuch] / bindings / python / notmuch / query.py
index 25b9e78045528464bd135f32f524f78a4c64a04b..ddaf8e08f5651c68967096814a8c84436d8ebab6 100644 (file)
@@ -26,11 +26,13 @@ from notmuch.globals import (
     NotmuchThreadsP,
     NotmuchDatabaseP,
     NotmuchMessagesP,
+)
+from .errors import (
     NullPointerError,
     NotInitializedError,
 )
-from notmuch.thread import Threads
-from notmuch.message import Messages
+from .threads import Threads
+from .messages import Messages
 
 
 class Query(object):
@@ -88,7 +90,6 @@ class Query(object):
         :type db: :class:`Database`
         :param querystr: The query string
         :type querystr: utf-8 encoded str or unicode
-        :returns: Nothing
         :raises:
             :exc:`NullPointerError` if the query creation failed
                 (e.g. too little memory).