From 20bbc6397a97c9eaae672070b9c54b566070d1ff Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 13 Aug 2010 21:05:10 -0700 Subject: [PATCH] Define basestring for python3. --- pym/portage/tests/dep/test_match_from_list.py | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.26.2