summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-02-22 10:24:53 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-02-22 10:24:53 +0000
commitba4584388f0d20810542a17218ff0346ec6357df (patch)
tree087cbbfef0ac72495c5f9b3c9e990011d631ea30
parent95ba162c8d142582166f31d51d1a489b6b8b6994 (diff)
downloadportage-ba4584388f0d20810542a17218ff0346ec6357df.tar.gz
portage-ba4584388f0d20810542a17218ff0346ec6357df.tar.bz2
portage-ba4584388f0d20810542a17218ff0346ec6357df.zip
Fix "NameError: global name 'basestring' is not defined" with Python 3.
svn path=/main/trunk/; revision=15428
-rw-r--r--pym/portage/package/ebuild/config.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/package/ebuild/config.py b/pym/portage/package/ebuild/config.py
index ab7b7a2a5..699521639 100644
--- a/pym/portage/package/ebuild/config.py
+++ b/pym/portage/package/ebuild/config.py
@@ -45,6 +45,9 @@ from portage.util import ensure_dirs, getconfig, grabdict, \
writemsg, writemsg_level
from portage.versions import catpkgsplit, catsplit, cpv_getkey
+if sys.hexversion >= 0x3000000:
+ basestring = str
+
def autouse(myvartree, use_cache=1, mysettings=None):
"""
autuse returns a list of USE variables auto-enabled to packages being installed