From 9145ecec8b7888c9d30caad4d2adbab9991ff7f1 Mon Sep 17 00:00:00 2001 From: Thomas Oettli Date: Mon, 9 Nov 2020 20:08:44 +0100 Subject: [PATCH] fix a long line --- pyinotifyd/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyinotifyd/__init__.py b/pyinotifyd/__init__.py index 40c7c8a..5bdcbb7 100755 --- a/pyinotifyd/__init__.py +++ b/pyinotifyd/__init__.py @@ -98,7 +98,8 @@ class EventMap(ProcessEvent): def process_default(self, event): msg = "received event" - for attr in ["dir", "mask", "maskname", "pathname", "src_pathname", "wd"]: + for attr in [ + "dir", "mask", "maskname", "pathname", "src_pathname", "wd"]: value = getattr(event, attr, None) if attr == "mask": value = hex(value)