fine tune some module imports
This commit is contained in:
@@ -33,6 +33,7 @@ from entropy.client.interfaces.methods import RepositoryMixin, MiscMixin, \
|
||||
from entropy.client.interfaces.fetch import FetchersMixin
|
||||
from entropy.const import etpConst, etpCache
|
||||
from entropy.core import SystemSettings, SystemSettingsPlugin
|
||||
from entropy.misc import LogFile
|
||||
from entropy.exceptions import SystemDatabaseError, RepositoryError
|
||||
|
||||
class ClientSystemSettingsPlugin(SystemSettingsPlugin):
|
||||
@@ -189,7 +190,6 @@ class Client(Singleton, TextInterface, LoadersMixin, CacheMixin, CalculatorsMixi
|
||||
import entropy.tools as entropyTools
|
||||
self.dumpTools = dumpTools
|
||||
self.entropyTools = entropyTools
|
||||
from entropy.misc import LogFile
|
||||
self.clientLog = LogFile(level = self.SystemSettings['system']['log_level'],
|
||||
filename = etpConst['equologfile'], header = "[client]")
|
||||
|
||||
|
||||
@@ -28,10 +28,12 @@ import shutil
|
||||
from entropy.const import *
|
||||
from entropy.exceptions import *
|
||||
from entropy.i18n import _
|
||||
from entropy.output import TextInterface, brown, blue, bold, darkgreen, darkblue, red, purple, darkred, print_info, print_error, print_warning
|
||||
from entropy.output import TextInterface, brown, blue, bold, darkgreen, \
|
||||
darkblue, red, purple, darkred, print_info, print_error, print_warning
|
||||
from entropy.misc import TimeScheduled
|
||||
from entropy.db import dbapi2, LocalRepository
|
||||
from entropy.client.interfaces.client import Client
|
||||
from entropy.cache import EntropyCacher
|
||||
|
||||
class Package:
|
||||
|
||||
@@ -43,7 +45,7 @@ class Package:
|
||||
mytxt = _("A valid Client instance or subclass is needed")
|
||||
raise IncorrectParameter("IncorrectParameter: %s" % (mytxt,))
|
||||
self.Entropy = EquoInstance
|
||||
from entropy.cache import EntropyCacher
|
||||
|
||||
self.Cacher = EntropyCacher()
|
||||
self.infoDict = {}
|
||||
self.prepared = False
|
||||
|
||||
Reference in New Issue
Block a user