summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2018-06-09 15:51:50 +0100
committerMaxime “pep” Buquet <pep@bouah.net>2018-07-01 01:29:31 +0100
commitb881c6729b79e37aba5ab2d99c3ba0fd79bc1b76 (patch)
tree71386e03f0d7a6a8daf72fe82a2ad0d8b88b8f97
parentcdfb5d56fc42a117c629c2b81505a159d93eaa25 (diff)
downloadslixmpp-b881c6729b79e37aba5ab2d99c3ba0fd79bc1b76.tar.gz
slixmpp-b881c6729b79e37aba5ab2d99c3ba0fd79bc1b76.tar.bz2
slixmpp-b881c6729b79e37aba5ab2d99c3ba0fd79bc1b76.tar.xz
slixmpp-b881c6729b79e37aba5ab2d99c3ba0fd79bc1b76.zip
xep_0363: Remove unused parameters to find_upload_services
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r--slixmpp/plugins/xep_0030/disco.py1
-rw-r--r--slixmpp/plugins/xep_0363/http_upload.py5
2 files changed, 3 insertions, 3 deletions
diff --git a/slixmpp/plugins/xep_0030/disco.py b/slixmpp/plugins/xep_0030/disco.py
index 166ad981..b1c261a9 100644
--- a/slixmpp/plugins/xep_0030/disco.py
+++ b/slixmpp/plugins/xep_0030/disco.py
@@ -6,6 +6,7 @@
See the file LICENSE for copying permission.
"""
+import asyncio
import logging
from slixmpp import Iq
diff --git a/slixmpp/plugins/xep_0363/http_upload.py b/slixmpp/plugins/xep_0363/http_upload.py
index 0cca2d08..073b3fc0 100644
--- a/slixmpp/plugins/xep_0363/http_upload.py
+++ b/slixmpp/plugins/xep_0363/http_upload.py
@@ -68,8 +68,7 @@ class XEP_0363(BasePlugin):
def _handle_request(self, iq):
self.xmpp.event('http_upload_request', iq)
- async def find_upload_service(self, ifrom=None, timeout=None, callback=None,
- timeout_callback=None):
+ async def find_upload_service(self, timeout=None):
infos = [self.xmpp['xep_0030'].get_info(self.xmpp.boundjid.domain)]
iq_items = await self.xmpp['xep_0030'].get_items(
self.xmpp.boundjid.domain, timeout=timeout)
@@ -100,7 +99,7 @@ class XEP_0363(BasePlugin):
callback=None, timeout_callback=None):
''' Helper function which does all of the uploading process. '''
if self.upload_service is None:
- info_iq = await self.find_upload_service(ifrom=ifrom, timeout=timeout)
+ info_iq = await self.find_upload_service(timeout=timeout)
if info_iq is None:
raise UploadServiceNotFound()
self.upload_service = info_iq['from']