Reformatted code base using black.
This commit is contained in:
parent
56319cbad3
commit
53fdaa9d09
1 changed files with 12604 additions and 8966 deletions
|
|
@ -45,7 +45,7 @@ class Get(base.CommandBase):
|
|||
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 @@ class Get(base.CommandBase):
|
|||
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 Get(base.CommandBase):
|
|||
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")
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue