diff libervia/backend/plugins/plugin_import.py @ 4270:0d7bb4df2343

Reformatted code base using black.
author Goffi <goffi@goffi.org>
date Wed, 19 Jun 2024 18:44:57 +0200
parents 4b842c1fb686
children
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_import.py	Tue Jun 18 12:06:45 2024 +0200
+++ b/libervia/backend/plugins/plugin_import.py	Wed Jun 19 18:44:57 2024 +0200
@@ -139,8 +139,16 @@
         else:
             return importer.short_desc, importer.long_desc
 
-    def _do_import(self, import_handler, name, location, options, pubsub_service="",
-                  pubsub_node="", profile=C.PROF_KEY_NONE):
+    def _do_import(
+        self,
+        import_handler,
+        name,
+        location,
+        options,
+        pubsub_service="",
+        pubsub_node="",
+        profile=C.PROF_KEY_NONE,
+    ):
         client = self.host.get_client(profile)
         options = {key: str(value) for key, value in options.items()}
         for option in import_handler.BOOL_OPTIONS:
@@ -169,8 +177,16 @@
         )
 
     @defer.inlineCallbacks
-    def do_import(self, client, import_handler, name, location, options=None,
-                 pubsub_service=None, pubsub_node=None,):
+    def do_import(
+        self,
+        client,
+        import_handler,
+        name,
+        location,
+        options=None,
+        pubsub_service=None,
+        pubsub_node=None,
+    ):
         """import data
 
         @param import_handler(object): instance of the import handler
@@ -324,9 +340,9 @@
         name = name.lower()
         if name in import_handler.importers:
             raise exceptions.ConflictError(
-                _(
-                    "An {handler_name} importer with the name {name} already exist"
-                ).format(handler_name=import_handler.name, name=name)
+                _("An {handler_name} importer with the name {name} already exist").format(
+                    handler_name=import_handler.name, name=name
+                )
             )
         import_handler.importers[name] = Importer(callback, short_desc, long_desc)