From 95e9d14f9daf399b92fe6828b84303dffbc89ffd Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Wed, 25 Oct 2017 09:44:16 +0100 Subject: [PATCH] framework/resource: clearer file and exe strings Update the File and Executable resource string representations to actually include the words "file" and "executable" respectively to make messages containing these representations (e.g. when a resource is not found) clearer. --- wa/framework/resource.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wa/framework/resource.py b/wa/framework/resource.py index b137fae9..ec675772 100644 --- a/wa/framework/resource.py +++ b/wa/framework/resource.py @@ -93,7 +93,7 @@ class File(Resource): return self.path == path def __str__(self): - return '<{}\'s {} {}>'.format(self.owner, self.kind, self.path) + return '<{}\'s {} {} file>'.format(self.owner, self.kind, self.path) class Executable(Resource): @@ -109,7 +109,7 @@ class Executable(Resource): return self.filename == os.path.basename(path) def __str__(self): - return '<{}\'s {} {}>'.format(self.owner, self.abi, self.filename) + return '<{}\'s {} {} executable>'.format(self.owner, self.abi, self.filename) class ReventFile(Resource):