Define basestring for python3.
authorZac Medico <zmedico@gentoo.org>
Sat, 14 Aug 2010 04:05:10 +0000 (21:05 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 14 Aug 2010 04:05:10 +0000 (21:05 -0700)
pym/portage/tests/dep/test_match_from_list.py

index dac05567c53b0a87a64b415bf57ea8ebc31e2938..50b2b4a5119f57a40c7f7087f3a75ebcc9aa99e5 100644 (file)
@@ -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