diff libervia/backend/plugins/plugin_xep_0060.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 111dce64dcb5
children
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_xep_0060.py	Tue Dec 03 00:53:18 2024 +0100
+++ b/libervia/backend/plugins/plugin_xep_0060.py	Wed Dec 11 01:17:09 2024 +0200
@@ -964,7 +964,7 @@
     #             log.debug(u"Skip the items retrieval for [{node}]: node doesn't exist".format(node=node))
     #             continue  # avoid pubsub "item-not-found" error
     #         d_dict[publisher] = self.get_items(service, node, max_items, None, sub_id, rsm, client.profile)
-    #     defer.returnValue(d_dict)
+    #     return d_dict
 
     def getOptions(
         self,
@@ -1667,7 +1667,7 @@
         #         log.debug(u"Skip the subscription to [{node}]: node doesn't exist".format(node=nodeIdentifier))
         #         continue  # avoid sat-pubsub "SubscriptionExists" error
         #     d_list.append(client.pubsub_client.subscribe(service, nodeIdentifier, sub_jid or client.pubsub_client.parent.jid.userhostJID(), options=options))
-        # defer.returnValue(d_list)
+        # return d_list
 
     # get #