diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-02-19 03:27:40 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-02-19 03:27:40 +0000 |
commit | 746f69f17187178d79c29c0670be8095ef524ae3 (patch) | |
tree | eb7eb0b0038bd2c6499ec36cb2d79232538c42c1 /pym/portage/env | |
parent | f522aabc3ddc4a55513c75a39d0b11378ba8f41b (diff) | |
download | portage-746f69f17187178d79c29c0670be8095ef524ae3.tar.gz portage-746f69f17187178d79c29c0670be8095ef524ae3.tar.bz2 portage-746f69f17187178d79c29c0670be8095ef524ae3.zip |
Implement a substitute for UserDict.UserDict so that code converted via
2to3 will run:
http://bugs.python.org/issue2876
svn path=/main/trunk/; revision=12629
Diffstat (limited to 'pym/portage/env')
-rw-r--r-- | pym/portage/env/config.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pym/portage/env/config.py b/pym/portage/env/config.py index c990d9f0e..9a446df0e 100644 --- a/pym/portage/env/config.py +++ b/pym/portage/env/config.py @@ -1,12 +1,15 @@ # config.py -- Portage Config -# Copyright 2007 Gentoo Foundation +# Copyright 2007-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ -from UserDict import UserDict +__all__ = ["ConfigLoaderKlass", "GenericFile", "PackageKeywordsFile", + "PackageUseFile", "PackageMaskFile", "PortageModulesFile"] + +from portage.cache.mappings import UserDict from portage.env.loaders import KeyListFileLoader, KeyValuePairFileLoader, ItemFileLoader -class ConfigLoaderKlass(UserDict, object): +class ConfigLoaderKlass(UserDict): """ A base class stub for things to inherit from. Users may want a non-file backend. |