Use "from . import" for relative imports
Will fail in python3 otherwise. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
parent
014caddee6
commit
b33f2452f0
@ -18,7 +18,7 @@
|
||||
|
||||
"""Folder implementation to support features of the Gmail IMAP server.
|
||||
"""
|
||||
from IMAP import IMAPFolder
|
||||
from .IMAP import IMAPFolder
|
||||
|
||||
class GmailFolder(IMAPFolder):
|
||||
"""Folder implementation to support features of the Gmail IMAP server.
|
||||
|
@ -21,7 +21,7 @@ import binascii
|
||||
import re
|
||||
import time
|
||||
from sys import exc_info
|
||||
from Base import BaseFolder
|
||||
from .Base import BaseFolder
|
||||
from offlineimap import imaputil, imaplibutil, OfflineImapError
|
||||
from offlineimap.imaplib2 import MonthNames
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
from Base import BaseFolder
|
||||
from .Base import BaseFolder
|
||||
import os
|
||||
import threading
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
import os.path
|
||||
import re
|
||||
from threading import Lock
|
||||
from LocalStatus import LocalStatusFolder
|
||||
from .LocalStatus import LocalStatusFolder
|
||||
try:
|
||||
import sqlite3 as sqlite
|
||||
except:
|
||||
|
@ -19,7 +19,7 @@ import socket
|
||||
import time
|
||||
import re
|
||||
import os
|
||||
from Base import BaseFolder
|
||||
from .Base import BaseFolder
|
||||
from threading import Lock
|
||||
|
||||
try:
|
||||
|
@ -15,7 +15,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
from threading import Lock
|
||||
from IMAP import IMAPFolder
|
||||
from .IMAP import IMAPFolder
|
||||
import os.path
|
||||
|
||||
class MappedIMAPFolder(IMAPFolder):
|
||||
|
@ -1,2 +1,2 @@
|
||||
import Base, Gmail, IMAP, Maildir, LocalStatus
|
||||
from . import Base, Gmail, IMAP, Maildir, LocalStatus
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user