Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r15428 - main/trunk/pym/portage/package/ebuild
Date: Mon, 22 Feb 2010 10:24:55
Message-Id: E1NjVTB-0004cL-L1@stork.gentoo.org
1 Author: arfrever
2 Date: 2010-02-22 10:24:53 +0000 (Mon, 22 Feb 2010)
3 New Revision: 15428
4
5 Modified:
6 main/trunk/pym/portage/package/ebuild/config.py
7 Log:
8 Fix "NameError: global name 'basestring' is not defined" with Python 3.
9
10
11 Modified: main/trunk/pym/portage/package/ebuild/config.py
12 ===================================================================
13 --- main/trunk/pym/portage/package/ebuild/config.py 2010-02-22 10:22:38 UTC (rev 15427)
14 +++ main/trunk/pym/portage/package/ebuild/config.py 2010-02-22 10:24:53 UTC (rev 15428)
15 @@ -45,6 +45,9 @@
16 writemsg, writemsg_level
17 from portage.versions import catpkgsplit, catsplit, cpv_getkey
18
19 +if sys.hexversion >= 0x3000000:
20 + basestring = str
21 +
22 def autouse(myvartree, use_cache=1, mysettings=None):
23 """
24 autuse returns a list of USE variables auto-enabled to packages being installed