diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-01-11 17:34:56 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-01-11 17:34:56 +0000 |
commit | e6637d3b148817c179f2eb4dea7a9e7f8f237680 (patch) | |
tree | 0d64b0bbe2acd796a4c190352e06571e372da1e7 | |
parent | 221fb005ec42210ed13f5163832a41b6d02c0b51 (diff) | |
download | portage-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.py | 2 |
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) |