diff libervia/cli/cmd_avatar.py @ 4270:0d7bb4df2343

Reformatted code base using black.
author Goffi <goffi@goffi.org>
date Wed, 19 Jun 2024 18:44:57 +0200
parents 47401850dec6
children
line wrap: on
line diff
--- a/libervia/cli/cmd_avatar.py	Tue Jun 18 12:06:45 2024 +0200
+++ b/libervia/cli/cmd_avatar.py	Wed Jun 19 18:44:57 2024 +0200
@@ -45,7 +45,7 @@
         self.parser.add_argument(
             "-s", "--show", action="store_true", help=_("show avatar")
         )
-        self.parser.add_argument("jid", nargs='?', default='', help=_("entity"))
+        self.parser.add_argument("jid", nargs="?", default="", help=_("entity"))
 
     async def show_image(self, path):
         sat_conf = config.parse_main_conf()
@@ -87,7 +87,7 @@
             self.disp(_("No avatar found."), 1)
             self.host.quit(C.EXIT_NOT_FOUND)
 
-        avatar_path = avatar_data['path']
+        avatar_path = avatar_data["path"]
 
         self.disp(avatar_path)
         if self.args.show:
@@ -99,13 +99,16 @@
 class Set(base.CommandBase):
     def __init__(self, host):
         super(Set, self).__init__(
-            host, "set", use_verbose=True,
-            help=_("set avatar of the profile or an entity")
+            host,
+            "set",
+            use_verbose=True,
+            help=_("set avatar of the profile or an entity"),
         )
 
     def add_parser_options(self):
         self.parser.add_argument(
-            "-j", "--jid", default='', help=_("entity whose avatar must be changed"))
+            "-j", "--jid", default="", help=_("entity whose avatar must be changed")
+        )
         self.parser.add_argument(
             "image_path", type=str, help=_("path to the image to upload")
         )