Improve InotifyEvent.__repr__

This commit is contained in:
Kristóf Tóth 2019-06-18 14:54:54 +02:00
parent 3cc70c2147
commit 49856cebe2
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ class InotifyEvent:
return self.__repr__()
def __repr__(self):
return f'{self.date}\t{self.__class__.__name__}:\t{self.src_path}'
return f'{self.__class__.__name__}({self.src_path})'
class InotifyMovedEvent(InotifyEvent):
@ -28,7 +28,7 @@ class InotifyMovedEvent(InotifyEvent):
super().__init__(src_path)
def __repr__(self):
return super().__repr__()+f'\t-> {self.dest_path}'
return f'{self.__class__.__name__}({self.src_path}, {self.dest_path})'
class InotifyFileCreatedEvent(InotifyEvent):