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:
parent
1b27696c31
commit
e36901ac8a
|
@ -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):
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Reference in New Issue