diff sat/plugins/plugin_misc_file.py @ 3088:d1464548055a

plugin file download: meta plugin to handle file download: - first code in backend to use async/await Python syntax \o/ - plugin with file upload - URL schemes can be registered - `http` and `https` schemes are handled by default
author Goffi <goffi@goffi.org>
date Fri, 20 Dec 2019 12:28:04 +0100
parents ab2696e34d29
children 9d0df638c8b4
line wrap: on
line diff
--- a/sat/plugins/plugin_misc_file.py	Fri Dec 20 12:28:04 2019 +0100
+++ b/sat/plugins/plugin_misc_file.py	Fri Dec 20 12:28:04 2019 +0100
@@ -81,15 +81,8 @@
             type_=C.MENU_SINGLE,
         )
 
-    def _fileSend(
-        self,
-        peer_jid_s,
-        filepath,
-        name="",
-        file_desc="",
-        extra=None,
-        profile=C.PROF_KEY_NONE,
-    ):
+    def _fileSend(self, peer_jid_s, filepath, name="", file_desc="", extra=None,
+                  profile=C.PROF_KEY_NONE):
         client = self.host.getClient(profile)
         return self.fileSend(
             client, jid.JID(peer_jid_s), filepath, name or None, file_desc or None, extra