summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-03-02 20:57:51 +0000
committerZac Medico <zmedico@gentoo.org>2010-03-02 20:57:51 +0000
commitcd6592121b91de173a1cc4f2464e8079be5e88cf (patch)
treefaa64daee6edf36e4a20708fc37093a594872e6e /pym
parentfc21f28cefd5826af241c04e1921d45d054199c4 (diff)
downloadportage-cd6592121b91de173a1cc4f2464e8079be5e88cf.tar.gz
portage-cd6592121b91de173a1cc4f2464e8079be5e88cf.tar.bz2
portage-cd6592121b91de173a1cc4f2464e8079be5e88cf.zip
Fix "AttributeError: 'module' object has no attribute 'mappings'".
Also fix some typos. (trunk r15429) svn path=/main/branches/2.1.7/; revision=15651
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/dbapi/porttree.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py
index 93f3b411b..51e260102 100644
--- a/pym/portage/dbapi/porttree.py
+++ b/pym/portage/dbapi/porttree.py
@@ -18,6 +18,7 @@ portage.proxy.lazyimport.lazyimport(globals(),
)
from portage.cache.cache_errors import CacheError
+from portage.cache.mappings import Mapping
from portage.const import REPO_NAME_LOC
from portage.data import portage_gid, secpass
from portage.dbapi import dbapi
@@ -127,17 +128,17 @@ class portdbapi(dbapi):
_use_mutable = True
def _get_settings(self):
- warnings.warn("Use portdbapi.settings insead of portdbapi.mysettings",
+ warnings.warn("Use portdbapi.settings instead of portdbapi.mysettings",
DeprecationWarning)
return self.settings
def _set_settings(self, settings):
- warnings.warn("Use portdbapi.settings insead of portdbapi.mysettings",
+ warnings.warn("Use portdbapi.settings instead of portdbapi.mysettings",
DeprecationWarning)
self.settings = settings
def _del_settings (self):
- warnings.warn("Use portdbapi.settings insead of portdbapi.mysettings",
+ warnings.warn("Use portdbapi.settings instead of portdbapi.mysettings",
DeprecationWarning)
del self.settings
@@ -1243,7 +1244,7 @@ class portagetree(object):
pass
return myslot
-class FetchlistDict(portage.cache.mappings.Mapping):
+class FetchlistDict(Mapping):
"""
This provide a mapping interface to retrieve fetch lists. It's used
to allow portage.manifest.Manifest to access fetch lists via a standard