diff libervia/backend/plugins/plugin_xep_0277.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 0d7bb4df2343
children
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_xep_0277.py	Tue Dec 03 00:53:18 2024 +0100
+++ b/libervia/backend/plugins/plugin_xep_0277.py	Wed Dec 11 01:17:09 2024 +0200
@@ -605,7 +605,7 @@
         # if other plugins have things to add or change
         yield self.host.trigger.point("XEP-0277_item2data", item_elt, entry_elt, mb_data)
 
-        defer.returnValue(mb_data)
+        return mb_data
 
     async def mb_data_2_entry_elt(self, client, mb_data, item_id, service, node):
         """Convert a data dict to en entry usable to create an item