aboutsummaryrefslogtreecommitdiffhomepage
path: root/bindings/python/notmuch/__init__.py
diff options
context:
space:
mode:
authorGravatar Justus Winter <4winter@informatik.uni-hamburg.de>2012-02-22 21:55:59 +0100
committerGravatar Justus Winter <4winter@informatik.uni-hamburg.de>2012-02-22 22:06:45 +0100
commitba95980cf1a5e2b32104611ccdf2e9c43bf3305a (patch)
tree790bd53661dbe6818032df0929ce1369fcb478bc /bindings/python/notmuch/__init__.py
parent1736488ecfd9b18a380ce04ac2df0303c0ea3c80 (diff)
python: refactor the python bindings
Move the Directory class into its own file, merge the two Filenames classes into one, deprecate Filenames.as_iterator, update the documentation accordingly. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
Diffstat (limited to 'bindings/python/notmuch/__init__.py')
-rw-r--r--bindings/python/notmuch/__init__.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/bindings/python/notmuch/__init__.py b/bindings/python/notmuch/__init__.py
index f3ff9874..8de73d58 100644
--- a/bindings/python/notmuch/__init__.py
+++ b/bindings/python/notmuch/__init__.py
@@ -51,11 +51,14 @@ along with notmuch. If not, see <http://www.gnu.org/licenses/>.
Copyright 2010-2011 Sebastian Spaeth <Sebastian@SSpaeth.de>
"""
-from notmuch.database import Database, Query
-from notmuch.message import Messages, Message
-from notmuch.thread import Threads, Thread
-from notmuch.tag import Tags
-from notmuch.globals import (
+from .database import Database
+from .directory import Directory
+from .filename import Filenames
+from .message import Messages, Message
+from .query import Query
+from .tag import Tags
+from .thread import Threads, Thread
+from .globals import (
nmlib,
STATUS,
NotmuchError,
@@ -71,6 +74,6 @@ from notmuch.globals import (
UnbalancedAtomicError,
NotInitializedError,
)
-from notmuch.version import __VERSION__
+from .version import __VERSION__
__LICENSE__ = "GPL v3+"
__AUTHOR__ = 'Sebastian Spaeth <Sebastian@SSpaeth.de>'