summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)