From 6100010d6873845413aed22744470616992df603 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Mon, 5 Oct 2020 14:04:41 +0200 Subject: Readded should be dead test --- src/philo/error.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/philo/error.py') diff --git a/src/philo/error.py b/src/philo/error.py index 51c3f7b..96a0723 100644 --- a/src/philo/error.py +++ b/src/philo/error.py @@ -6,10 +6,13 @@ # By: cacharle +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/09/29 09:09:31 by cacharle #+# #+# # -# Updated: 2020/09/29 11:14:08 by cacharle ### ########.fr # +# Updated: 2020/10/05 13:51:40 by cacharle ### ########.fr # # # # ############################################################################ # +import textwrap + + class Philo(Exception): pass @@ -53,9 +56,10 @@ class Log(Philo): @property def full_summary(self): - return """LOG ERROR: {} -{} -""".format(self._msg, '\n'.join([str(l) for l in self._logs])) + return textwrap.dedent("""\ + LOG ERROR: {} + {} + """).format(self._msg, '\n'.join([str(log) for log in self._logs])) @property def summary(self): -- cgit