summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/tests/dep/test_match_from_list.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/portage/tests/dep/test_match_from_list.py b/pym/portage/tests/dep/test_match_from_list.py
index dac05567c..50b2b4a51 100644
--- 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