diff options
Diffstat (limited to 'pym/_emerge/BlockerCache.py')
-rw-r--r-- | pym/_emerge/BlockerCache.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/_emerge/BlockerCache.py b/pym/_emerge/BlockerCache.py index 9962ffdd5..c4270242f 100644 --- a/pym/_emerge/BlockerCache.py +++ b/pym/_emerge/BlockerCache.py @@ -2,6 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ +import sys from portage.util import writemsg from portage.data import secpass import portage @@ -12,6 +13,9 @@ try: except ImportError: import pickle +if sys.hexversion >= 0x3000000: + basestring = str + class BlockerCache(portage.cache.mappings.MutableMapping): """This caches blockers of installed packages so that dep_check does not have to be done for every single installed package on every invocation of |