From fc21f28cefd5826af241c04e1921d45d054199c4 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 2 Mar 2010 20:57:38 +0000 Subject: [PATCH] Fix "NameError: global name 'basestring' is not defined" with Python 3. (trunk r15428) svn path=/main/branches/2.1.7/; revision=15650 --- pym/portage/package/ebuild/config.py | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.26.2