python3: import absolute package name

This import failed in python3, we need to either specify "." (relative) or
from OfflineImap.ui. (absolute). Done the latter.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
Sebastian Spaeth 2012-02-05 11:57:19 +01:00
parent 06a78b6112
commit 74fc902967
4 changed files with 5 additions and 5 deletions

View File

@ -16,9 +16,9 @@
# 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 BaseRepository
from offlineimap.folder.LocalStatus import LocalStatusFolder, magicline
from offlineimap.folder.LocalStatusSQLite import LocalStatusSQLiteFolder
from offlineimap.repository.Base import BaseRepository
import os
import re

View File

@ -16,10 +16,10 @@
# 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 BaseRepository
from offlineimap import folder
from offlineimap.ui import getglobalui
from offlineimap.error import OfflineImapError
from offlineimap.repository.Base import BaseRepository
import os
from stat import *

View File

@ -17,8 +17,8 @@ from urllib import urlencode
import sys
import time
import logging
from UIBase import UIBase
from threading import currentThread
from offlineimap.ui.UIBase import UIBase
import offlineimap
protocol = '7.0.0'

View File

@ -1,5 +1,5 @@
# Noninteractive UI
# Copyright (C) 2002-2011 John Goerzen & contributors
# Copyright (C) 2002-2012 John Goerzen & contributors
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -16,7 +16,7 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
import logging
from UIBase import UIBase
from offlineimap.ui.UIBase import UIBase
class Basic(UIBase):
"""'Quiet' simply sets log level to INFO"""