From 5291e389dc5f4ddf8fd8aa3df5bb8ca52907d140 Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Fri, 18 May 2018 13:44:32 +0100 Subject: [PATCH] fw/output: implement __str__ JobOutput Implement a __str__ method for JobOutput to make it easier to format it into messages. --- wa/framework/output.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wa/framework/output.py b/wa/framework/output.py index c7e0a111..42176d0d 100644 --- a/wa/framework/output.py +++ b/wa/framework/output.py @@ -133,7 +133,9 @@ class Output(object): return '<{} {}>'.format(self.__class__.__name__, os.path.basename(self.basepath)) - __str__ = __repr__ + def __str__(self): + return os.path.basename(self.basepath) + class RunOutput(Output):