public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r15650 - main/branches/2.1.7/pym/portage/package/ebuild
@ 2010-03-02 20:57 Zac Medico (zmedico)
  0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2010-03-02 20:57 UTC (permalink / raw
  To: gentoo-commits

Author: zmedico
Date: 2010-03-02 20:57:38 +0000 (Tue, 02 Mar 2010)
New Revision: 15650

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

Modified: main/branches/2.1.7/pym/portage/package/ebuild/config.py
===================================================================
--- main/branches/2.1.7/pym/portage/package/ebuild/config.py	2010-03-02 20:56:37 UTC (rev 15649)
+++ main/branches/2.1.7/pym/portage/package/ebuild/config.py	2010-03-02 20:57:38 UTC (rev 15650)
@@ -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-03-02 20:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-02 20:57 [gentoo-commits] portage r15650 - main/branches/2.1.7/pym/portage/package/ebuild Zac Medico (zmedico)

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