From b1bee095d4276b071ebb34a0c2ed9ee1db4570d9 Mon Sep 17 00:00:00 2001 From: Marius Mauch Date: Thu, 11 Jan 2007 08:22:51 +0000 Subject: [PATCH] Don't escape strings in PortageException as that breaks newline handling (bug 147785) svn path=/main/trunk/; revision=5546 --- pym/portage_exception.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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""" -- 2.26.2