From 49856cebe2b7e5fb68289a83dfbec5b9f1b50d2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Tue, 18 Jun 2019 14:54:54 +0200 Subject: [PATCH] Improve InotifyEvent.__repr__ --- lib/tfw/components/inotify/inotify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tfw/components/inotify/inotify.py b/lib/tfw/components/inotify/inotify.py index 33b0936..032fd67 100644 --- a/lib/tfw/components/inotify/inotify.py +++ b/lib/tfw/components/inotify/inotify.py @@ -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):