python: use relative imports

Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
This commit is contained in:
Justus Winter 2012-05-17 16:58:53 +02:00
parent 5bc5471c54
commit 05c3e83bd2
7 changed files with 10 additions and 10 deletions

View file

@ -20,7 +20,7 @@ Copyright 2010 Sebastian Spaeth <Sebastian@SSpaeth.de>
import os
import codecs
from ctypes import c_char_p, c_void_p, c_uint, byref, POINTER
from notmuch.globals import (
from .globals import (
nmlib,
Enum,
_str,
@ -37,8 +37,8 @@ from .errors import (
NotInitializedError,
ReadOnlyDatabaseError,
)
from notmuch.message import Message
from notmuch.tag import Tags
from .message import Message
from .tag import Tags
from .query import Query
from .directory import Directory

View file

@ -18,7 +18,7 @@ Copyright 2010 Sebastian Spaeth <Sebastian@SSpaeth.de>
"""
from ctypes import c_uint, c_long
from notmuch.globals import (
from .globals import (
nmlib,
NotmuchDirectoryP,
NotmuchFilenamesP

View file

@ -17,7 +17,7 @@ along with notmuch. If not, see <http://www.gnu.org/licenses/>.
Copyright 2010 Sebastian Spaeth <Sebastian@SSpaeth.de>
"""
from ctypes import c_char_p
from notmuch.globals import (
from .globals import (
nmlib,
NotmuchMessageP,
NotmuchFilenamesP,

View file

@ -18,7 +18,7 @@ Copyright 2010 Sebastian Spaeth <Sebastian@SSpaeth.de>
"""
from ctypes import c_char_p, c_uint
from notmuch.globals import (
from .globals import (
nmlib,
Enum,
_str,

View file

@ -17,7 +17,7 @@ along with notmuch. If not, see <http://www.gnu.org/licenses/>.
Copyright 2010 Sebastian Spaeth <Sebastian@SSpaeth.de>
"""
from ctypes import c_char_p
from notmuch.globals import (
from .globals import (
nmlib,
Python3StringMixIn,
NotmuchTagsP,

View file

@ -18,7 +18,7 @@ Copyright 2010 Sebastian Spaeth <Sebastian@SSpaeth.de>
"""
from ctypes import c_char_p, c_long, c_int
from notmuch.globals import (
from .globals import (
nmlib,
NotmuchThreadP,
NotmuchMessagesP,
@ -29,7 +29,7 @@ from .errors import (
NotInitializedError,
)
from .messages import Messages
from notmuch.tag import Tags
from .tag import Tags
from datetime import date
class Thread(object):

View file

@ -17,7 +17,7 @@ along with notmuch. If not, see <http://www.gnu.org/licenses/>.
Copyright 2010 Sebastian Spaeth <Sebastian@SSpaeth.de>
"""
from notmuch.globals import (
from .globals import (
nmlib,
Python3StringMixIn,
NotmuchThreadP,