Mercurial > libervia-pubsub
comparison sat_pubsub/backend.py @ 493:33222c54d2af
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:19:46 +0200 |
parents | cab491b1b563 |
children | 468b7cd6c344 |
comparison
equal
deleted
inserted
replaced
492:0296a2121504 | 493:33222c54d2af |
---|---|
1046 elif access_model == const.VAL_AMODEL_WHITELIST: | 1046 elif access_model == const.VAL_AMODEL_WHITELIST: |
1047 yield self.checkNodeAffiliations(node, requestor) | 1047 yield self.checkNodeAffiliations(node, requestor) |
1048 else: | 1048 else: |
1049 raise Exception("Unknown access_model") | 1049 raise Exception("Unknown access_model") |
1050 | 1050 |
1051 defer.returnValue((affiliation, owner, roster, access_model)) | 1051 return (affiliation, owner, roster, access_model) |
1052 | 1052 |
1053 async def getItemsIds( | 1053 async def getItemsIds( |
1054 self, | 1054 self, |
1055 nodeIdentifier: str, | 1055 nodeIdentifier: str, |
1056 requestor: jid.JID, | 1056 requestor: jid.JID, |