Mercurial > libervia-backend
diff 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 |
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_xep_0166/__init__.py Tue Dec 03 00:53:18 2024 +0100 +++ b/libervia/backend/plugins/plugin_xep_0166/__init__.py Wed Dec 11 01:17:09 2024 +0200 @@ -1399,7 +1399,7 @@ jingle_elt, session, request, client, with_application=False ) except exceptions.CancelError: - defer.returnValue(None) + return None client.send(xmlstream.toResponse(request, "result")) @@ -1433,7 +1433,7 @@ reject_jingle_elt.addChild(child) iq_elt.send() - defer.returnValue(None) + return None # at this point, everything is alright and we can replace the transport(s) # this is similar to an session-accept action, but for transports only