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.
|
"""Folder implementation to support features of the Gmail IMAP server.
|
||||||
"""
|
"""
|
||||||
from IMAP import IMAPFolder
|
from .IMAP import IMAPFolder
|
||||||
|
|
||||||
class GmailFolder(IMAPFolder):
|
class GmailFolder(IMAPFolder):
|
||||||
"""Folder implementation to support features of the Gmail IMAP server.
|
"""Folder implementation to support features of the Gmail IMAP server.
|
||||||
|
@ -21,7 +21,7 @@ import binascii
|
|||||||
import re
|
import re
|
||||||
import time
|
import time
|
||||||
from sys import exc_info
|
from sys import exc_info
|
||||||
from Base import BaseFolder
|
from .Base import BaseFolder
|
||||||
from offlineimap import imaputil, imaplibutil, OfflineImapError
|
from offlineimap import imaputil, imaplibutil, OfflineImapError
|
||||||
from offlineimap.imaplib2 import MonthNames
|
from offlineimap.imaplib2 import MonthNames
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
from Base import BaseFolder
|
from .Base import BaseFolder
|
||||||
import os
|
import os
|
||||||
import threading
|
import threading
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
import os.path
|
import os.path
|
||||||
import re
|
import re
|
||||||
from threading import Lock
|
from threading import Lock
|
||||||
from LocalStatus import LocalStatusFolder
|
from .LocalStatus import LocalStatusFolder
|
||||||
try:
|
try:
|
||||||
import sqlite3 as sqlite
|
import sqlite3 as sqlite
|
||||||
except:
|
except:
|
||||||
|
@ -19,7 +19,7 @@ import socket
|
|||||||
import time
|
import time
|
||||||
import re
|
import re
|
||||||
import os
|
import os
|
||||||
from Base import BaseFolder
|
from .Base import BaseFolder
|
||||||
from threading import Lock
|
from threading import Lock
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
from threading import Lock
|
from threading import Lock
|
||||||
from IMAP import IMAPFolder
|
from .IMAP import IMAPFolder
|
||||||
import os.path
|
import os.path
|
||||||
|
|
||||||
class MappedIMAPFolder(IMAPFolder):
|
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