From e6637d3b148817c179f2eb4dea7a9e7f8f237680 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 11 Jan 2007 17:34:56 +0000 Subject: Use isinstance(foo, basestring) so that it can work with unicode strings too. svn path=/main/trunk/; revision=5553 --- pym/portage_exception.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pym') diff --git a/pym/portage_exception.py b/pym/portage_exception.py index 8791b2fd5..76f2be20a 100644 --- a/pym/portage_exception.py +++ b/pym/portage_exception.py @@ -8,7 +8,7 @@ class PortageException(Exception): def __init__(self,value): self.value = value[:] def __str__(self): - if isinstance(self.value, str): + if isinstance(self.value, basestring): return self.value else: return repr(self.value) -- cgit v1.2.3-1-g7c22