projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5749d6e
)
Bug #307723 - Define basestring for python3. (trunk r15745)
v2.1.8.1
author
Zac Medico
<zmedico@gentoo.org>
Thu, 4 Mar 2010 11:23:09 +0000
(11:23 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Thu, 4 Mar 2010 11:23:09 +0000
(11:23 -0000)
svn path=/main/branches/2.1.7/; revision=15749
pym/portage/package/ebuild/getmaskingstatus.py
patch
|
blob
|
history
diff --git
a/pym/portage/package/ebuild/getmaskingstatus.py
b/pym/portage/package/ebuild/getmaskingstatus.py
index bfe92d824ea2c14a2259ff7a1197edbccbe0f696..a51332028f90ae7a673f24ef4083fefa919817f5 100644
(file)
--- 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)