utils: checkstyle: Add __repr__ method to CommitFile class
Add a custom representation to the CommitFile class in order to facilitate debugging. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
@@ -191,6 +191,9 @@ class CommitFile:
|
||||
else:
|
||||
self.__filename = info[1]
|
||||
|
||||
def __repr__(self):
|
||||
return f'{self.__status} {self.__filename}'
|
||||
|
||||
@property
|
||||
def filename(self):
|
||||
return self.__filename
|
||||
|
||||
Reference in New Issue
Block a user