summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-03-04 11:00:16 +0000
committerZac Medico <zmedico@gentoo.org>2010-03-04 11:00:16 +0000
commita2701f9b2f887941af8114a50c66c38c868a023b (patch)
treeaa11d054c16a2242bd06fea7c6e4b789adfd005d
parentFix imports doebuild_environment and prepare_build_dirs imports to import from (diff)
downloadportage-multirepo-a2701f9b2f887941af8114a50c66c38c868a023b.tar.gz
portage-multirepo-a2701f9b2f887941af8114a50c66c38c868a023b.tar.bz2
portage-multirepo-a2701f9b2f887941af8114a50c66c38c868a023b.zip
Bug #307723 - Define basestring for python3.v2.2_rc65
svn path=/main/trunk/; revision=15745
-rw-r--r--pym/portage/package/ebuild/getmaskingstatus.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/portage/package/ebuild/getmaskingstatus.py b/pym/portage/package/ebuild/getmaskingstatus.py
index bfe92d82..a5133202 100644
--- a/pym/portage/package/ebuild/getmaskingstatus.py
+++ b/pym/portage/package/ebuild/getmaskingstatus.py
@@ -4,6 +4,8 @@
__all__ = ['getmaskingstatus']
+import sys
+
import portage
from portage import eapi_is_supported, _eapi_is_deprecated
from portage.dep import match_from_list
@@ -11,6 +13,9 @@ from portage.localization import _
from portage.package.ebuild.config import config
from portage.versions import catpkgsplit, cpv_getkey
+if sys.hexversion >= 0x3000000:
+ basestring = str
+
def getmaskingstatus(mycpv, settings=None, portdb=None):
if settings is None:
settings = config(clone=portage.settings)