From 8cc7564c328d72936905f40a1c53d4d89417fca7 Mon Sep 17 00:00:00 2001 From: Martin Raspaud Date: Fri, 12 Apr 2024 15:32:43 +0200 Subject: [PATCH] Fix linting --- src/pytroll_watchers/local_watcher.py | 2 +- src/pytroll_watchers/minio_notification_watcher.py | 2 +- src/pytroll_watchers/publisher.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pytroll_watchers/local_watcher.py b/src/pytroll_watchers/local_watcher.py index bf831bb..125061d 100644 --- a/src/pytroll_watchers/local_watcher.py +++ b/src/pytroll_watchers/local_watcher.py @@ -9,7 +9,7 @@ from upath import UPath from pytroll_watchers.backends.local import listen_to_local_events -from pytroll_watchers.publisher import file_publisher_from_generator, fix_times, parse_metadata +from pytroll_watchers.publisher import file_publisher_from_generator, parse_metadata def file_publisher(fs_config, publisher_config, message_config): diff --git a/src/pytroll_watchers/minio_notification_watcher.py b/src/pytroll_watchers/minio_notification_watcher.py index c550897..5064282 100644 --- a/src/pytroll_watchers/minio_notification_watcher.py +++ b/src/pytroll_watchers/minio_notification_watcher.py @@ -2,7 +2,7 @@ from upath import UPath -from pytroll_watchers.publisher import file_publisher_from_generator, fix_times, parse_metadata +from pytroll_watchers.publisher import file_publisher_from_generator, parse_metadata def file_publisher(fs_config, publisher_config, message_config): diff --git a/src/pytroll_watchers/publisher.py b/src/pytroll_watchers/publisher.py index 2014dfb..0cb0e6b 100644 --- a/src/pytroll_watchers/publisher.py +++ b/src/pytroll_watchers/publisher.py @@ -1,8 +1,8 @@ """Common functions for publishing messages.""" +import datetime from contextlib import closing, suppress from copy import deepcopy -import datetime from posttroll.message import Message from posttroll.publisher import create_publisher_from_dict_config