comparison libervia/backend/plugins/plugin_xep_0166/__init__.py @ 4341:e9971a4b0627

remove uses of twisted.internet.defer.returnValue This function has been deprecated in Twisted 24.7.0.
author Povilas Kanapickas <povilas@radix.lt>
date Wed, 11 Dec 2024 01:17:09 +0200
parents f46891f2c9cb
children
comparison
equal deleted inserted replaced
4340:ea72364131d5 4341:e9971a4b0627
1397 try: 1397 try:
1398 self._parse_elements( 1398 self._parse_elements(
1399 jingle_elt, session, request, client, with_application=False 1399 jingle_elt, session, request, client, with_application=False
1400 ) 1400 )
1401 except exceptions.CancelError: 1401 except exceptions.CancelError:
1402 defer.returnValue(None) 1402 return None
1403 1403
1404 client.send(xmlstream.toResponse(request, "result")) 1404 client.send(xmlstream.toResponse(request, "result"))
1405 1405
1406 content_name = None 1406 content_name = None
1407 to_replace = [] 1407 to_replace = []
1431 ) 1431 )
1432 for child in jingle_elt.children: 1432 for child in jingle_elt.children:
1433 reject_jingle_elt.addChild(child) 1433 reject_jingle_elt.addChild(child)
1434 1434
1435 iq_elt.send() 1435 iq_elt.send()
1436 defer.returnValue(None) 1436 return None
1437 1437
1438 # at this point, everything is alright and we can replace the transport(s) 1438 # at this point, everything is alright and we can replace the transport(s)
1439 # this is similar to an session-accept action, but for transports only 1439 # this is similar to an session-accept action, but for transports only
1440 iq_elt, accept_jingle_elt = self._build_jingle_elt( 1440 iq_elt, accept_jingle_elt = self._build_jingle_elt(
1441 client, session, XEP_0166.A_TRANSPORT_ACCEPT 1441 client, session, XEP_0166.A_TRANSPORT_ACCEPT