From: Zac Medico Date: Tue, 2 Mar 2010 20:57:38 +0000 (-0000) Subject: Fix "NameError: global name 'basestring' is not defined" with Python 3. X-Git-Tag: v2.1.8~73 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fc21f28cefd5826af241c04e1921d45d054199c4;p=portage.git Fix "NameError: global name 'basestring' is not defined" with Python 3. (trunk r15428) svn path=/main/branches/2.1.7/; revision=15650 --- 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