summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-01-11 17:34:56 +0000
committerZac Medico <zmedico@gentoo.org>2007-01-11 17:34:56 +0000
commite6637d3b148817c179f2eb4dea7a9e7f8f237680 (patch)
tree0d64b0bbe2acd796a4c190352e06571e372da1e7
parent221fb005ec42210ed13f5163832a41b6d02c0b51 (diff)
downloadportage-e6637d3b148817c179f2eb4dea7a9e7f8f237680.tar.gz
portage-e6637d3b148817c179f2eb4dea7a9e7f8f237680.tar.bz2
portage-e6637d3b148817c179f2eb4dea7a9e7f8f237680.zip
Use isinstance(foo, basestring) so that it can work with unicode strings too.
svn path=/main/trunk/; revision=5553
-rw-r--r--pym/portage_exception.py2
1 files changed, 1 insertions, 1 deletions
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)