From: Marius Mauch Date: Thu, 11 Jan 2007 08:22:51 +0000 (-0000) Subject: Don't escape strings in PortageException as that breaks newline handling (bug 147785) X-Git-Tag: v2.1.2~85 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b1bee095d4276b071ebb34a0c2ed9ee1db4570d9;p=portage.git Don't escape strings in PortageException as that breaks newline handling (bug 147785) svn path=/main/trunk/; revision=5546 --- 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"""