projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e39119
)
Define basestring for python3.
author
Zac Medico
<zmedico@gentoo.org>
Sat, 14 Aug 2010 04:05:10 +0000
(21:05 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Sat, 14 Aug 2010 04:05:10 +0000
(21:05 -0700)
pym/portage/tests/dep/test_match_from_list.py
patch
|
blob
|
history
diff --git
a/pym/portage/tests/dep/test_match_from_list.py
b/pym/portage/tests/dep/test_match_from_list.py
index dac05567c53b0a87a64b415bf57ea8ebc31e2938..50b2b4a5119f57a40c7f7087f3a75ebcc9aa99e5 100644
(file)
--- a/
pym/portage/tests/dep/test_match_from_list.py
+++ b/
pym/portage/tests/dep/test_match_from_list.py
@@
-1,10
+1,14
@@
# Copyright 2006, 2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
+import sys
from portage.tests import TestCase
from portage.dep import Atom, match_from_list
from portage.versions import catpkgsplit
+if sys.hexversion >= 0x3000000:
+ basestring = str
+
class Package(object):
"""
Provides a minimal subset of attributes of _emerge.Package.Package