summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2019-08-01 22:36:18 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2019-08-01 22:36:59 +0200
commitf35569a2c11d988c0d7200eec94ea2eb9c527acb (patch)
treeb3a5e4b6b10830002356d2d9590c48729325508d
parentbec6f7c8f330145fb472ad917f3cb1e78697f2e0 (diff)
downloadslixmpp-f35569a2c11d988c0d7200eec94ea2eb9c527acb.tar.gz
slixmpp-f35569a2c11d988c0d7200eec94ea2eb9c527acb.tar.bz2
slixmpp-f35569a2c11d988c0d7200eec94ea2eb9c527acb.tar.xz
slixmpp-f35569a2c11d988c0d7200eec94ea2eb9c527acb.zip
Remove the last instances of a block argument to iq.send().
Thanks Madhur Garg for spotting this in 027ce2434d7fd3cf4a286dd373cb761c0d114c66!
-rw-r--r--slixmpp/plugins/xep_0279/ipcheck.py4
-rw-r--r--slixmpp/plugins/xep_0332/http.py3
2 files changed, 2 insertions, 5 deletions
diff --git a/slixmpp/plugins/xep_0279/ipcheck.py b/slixmpp/plugins/xep_0279/ipcheck.py
index 56d9afd4..8954c3d9 100644
--- a/slixmpp/plugins/xep_0279/ipcheck.py
+++ b/slixmpp/plugins/xep_0279/ipcheck.py
@@ -31,11 +31,11 @@ class XEP_0279(BasePlugin):
def plugin_end(self):
self.xmpp['xep_0030'].del_feature(feature='urn:xmpp:sic:0')
- def check_ip(self, ifrom=None, block=True, timeout=None, callback=None,
+ def check_ip(self, ifrom=None, timeout=None, callback=None,
timeout_callback=None):
iq = self.xmpp.Iq()
iq['type'] = 'get'
iq['from'] = ifrom
iq.enable('ip_check')
- return iq.send(block=block, timeout=timeout, callback=callback,
+ return iq.send(timeout=timeout, callback=callback,
timeout_callback=timeout_callback)
diff --git a/slixmpp/plugins/xep_0332/http.py b/slixmpp/plugins/xep_0332/http.py
index bebb0e69..50f14322 100644
--- a/slixmpp/plugins/xep_0332/http.py
+++ b/slixmpp/plugins/xep_0332/http.py
@@ -114,7 +114,6 @@ class XEP_0332(BasePlugin):
iq['http-req']['data'] = data
return iq.send(
timeout=kwargs.get('timeout', None),
- block=kwargs.get('block', True),
callback=kwargs.get('callback', None),
timeout_callback=kwargs.get('timeout_callback', None)
)
@@ -135,7 +134,6 @@ class XEP_0332(BasePlugin):
iq['http-resp']['data'] = data
return iq.send(
timeout=kwargs.get('timeout', None),
- block=kwargs.get('block', True),
callback=kwargs.get('callback', None),
timeout_callback=kwargs.get('timeout_callback', None)
)
@@ -153,7 +151,6 @@ class XEP_0332(BasePlugin):
iq['id'] = kwargs["id"]
return iq.send(
timeout=kwargs.get('timeout', None),
- block=kwargs.get('block', True),
callback=kwargs.get('callback', None),
timeout_callback=kwargs.get('timeout_callback', None)
)