mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 14:21:33 +00:00
Improve InotifyEvent.__repr__
This commit is contained in:
parent
3cc70c2147
commit
49856cebe2
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user