manifest: one more Project.__repr__ fix

Hopefully the last one.

Note that this "fix" is purely cosmetic, for use when reading debugger
output.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
Martí Bolívar 2020-02-05 10:15:54 -08:00 committed by Marti Bolivar
parent 1b27696c31
commit e36901ac8a
1 changed files with 6 additions and 4 deletions

View File

@ -1094,9 +1094,10 @@ class Project:
def __repr__(self): def __repr__(self):
return (f'Project("{self.name}", "{self.url}", ' 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'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): def __str__(self):
path_repr = repr(self.abspath or self.path) path_repr = repr(self.abspath or self.path)
@ -1397,8 +1398,9 @@ class ManifestProject(Project):
''' '''
def __repr__(self): def __repr__(self):
return (f'ManifestProject({self.name}, path={self.path}, ' return (f'ManifestProject({self.name}, path={repr(self.path)}, '
f'west_commands={self.west_commands}, topdir={self.topdir})') f'west_commands={self.west_commands}, '
f'topdir={repr(self.topdir)})')
def __init__(self, path=None, west_commands=None, topdir=None): def __init__(self, path=None, west_commands=None, topdir=None):
''' '''