diff options
author | Marius Mauch <genone@gentoo.org> | 2007-01-11 08:22:51 +0000 |
---|---|---|
committer | Marius Mauch <genone@gentoo.org> | 2007-01-11 08:22:51 +0000 |
commit | b1bee095d4276b071ebb34a0c2ed9ee1db4570d9 (patch) | |
tree | 3909871c9bbf3f7fb666def4a3fa0d2c672cb572 | |
parent | e48706131c2aca3399e1fccb26ea29863a37ae25 (diff) | |
download | portage-b1bee095d4276b071ebb34a0c2ed9ee1db4570d9.tar.gz portage-b1bee095d4276b071ebb34a0c2ed9ee1db4570d9.tar.bz2 portage-b1bee095d4276b071ebb34a0c2ed9ee1db4570d9.zip |
Don't escape strings in PortageException as that breaks newline handling (bug 147785)
svn path=/main/trunk/; revision=5546
-rw-r--r-- | pym/portage_exception.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/portage_exception.py b/pym/portage_exception.py index 57eafb505..8791b2fd5 100644 --- a/pym/portage_exception.py +++ b/pym/portage_exception.py @@ -8,7 +8,10 @@ class PortageException(Exception): def __init__(self,value): self.value = value[:] def __str__(self): - return repr(self.value) + if isinstance(self.value, str): + return self.value + else: + return repr(self.value) class CorruptionError(PortageException): """Corruption indication""" |