From: Zac Medico Date: Sat, 14 Aug 2010 04:05:10 +0000 (-0700) Subject: Define basestring for python3. X-Git-Tag: v2.2_rc68~228 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=20bbc6397a97c9eaae672070b9c54b566070d1ff;p=portage.git Define basestring for python3. --- 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