public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r15428 - main/trunk/pym/portage/package/ebuild
@ 2010-02-22 10:24 Arfrever Frehtes Taifersar Arahesis (arfrever)
  0 siblings, 0 replies; only message in thread
From: Arfrever Frehtes Taifersar Arahesis (arfrever) @ 2010-02-22 10:24 UTC (permalink / raw
  To: gentoo-commits

Author: arfrever
Date: 2010-02-22 10:24:53 +0000 (Mon, 22 Feb 2010)
New Revision: 15428

Modified:
   main/trunk/pym/portage/package/ebuild/config.py
Log:
Fix "NameError: global name 'basestring' is not defined" with Python 3.


Modified: main/trunk/pym/portage/package/ebuild/config.py
===================================================================
--- main/trunk/pym/portage/package/ebuild/config.py	2010-02-22 10:22:38 UTC (rev 15427)
+++ main/trunk/pym/portage/package/ebuild/config.py	2010-02-22 10:24:53 UTC (rev 15428)
@@ -45,6 +45,9 @@
 	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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-02-22 10:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-22 10:24 [gentoo-commits] portage r15428 - main/trunk/pym/portage/package/ebuild Arfrever Frehtes Taifersar Arahesis (arfrever)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox