From e36901ac8a2d290023f5c61386d4eaf61aa5e35a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=AD=20Bol=C3=ADvar?= Date: Wed, 5 Feb 2020 10:15:54 -0800 Subject: [PATCH] manifest: one more Project.__repr__ fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hopefully the last one. Note that this "fix" is purely cosmetic, for use when reading debugger output. Signed-off-by: Martí Bolívar --- src/west/manifest.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/west/manifest.py b/src/west/manifest.py index d0b17bd..47cd034 100644 --- a/src/west/manifest.py +++ b/src/west/manifest.py @@ -1094,9 +1094,10 @@ class Project: def __repr__(self): return (f'Project("{self.name}", "{self.url}", ' - f'revision="{self.revision}", path="{self.path}", ' + f'revision="{self.revision}", path={repr(self.path)}, ' f'clone_depth={self.clone_depth}, ' - f'west_commands={self.west_commands}, topdir={self.topdir})') + f'west_commands={self.west_commands}, ' + f'topdir={repr(self.topdir)})') def __str__(self): path_repr = repr(self.abspath or self.path) @@ -1397,8 +1398,9 @@ class ManifestProject(Project): ''' def __repr__(self): - return (f'ManifestProject({self.name}, path={self.path}, ' - f'west_commands={self.west_commands}, topdir={self.topdir})') + return (f'ManifestProject({self.name}, path={repr(self.path)}, ' + f'west_commands={self.west_commands}, ' + f'topdir={repr(self.topdir)})') def __init__(self, path=None, west_commands=None, topdir=None): '''