Stop using twisted.internet.defer.returnValue (#18020)
`defer.returnValue` was only needed in Python 2; in Python 3, a simple `return` is fine. `twisted.internet.defer.returnValue` is deprecated as of Twisted 24.7.0. Most uses of `returnValue` in synapse were removed a while back; this cleans up some remaining bits.
Showing
- changelog.d/18020.misc 1 addition, 0 deletionschangelog.d/18020.misc
- contrib/cmdclient/console.py 3 additions, 3 deletionscontrib/cmdclient/console.py
- contrib/cmdclient/http.py 4 additions, 4 deletionscontrib/cmdclient/http.py
- synapse/logging/scopecontextmanager.py 1 addition, 18 deletionssynapse/logging/scopecontextmanager.py
- synapse/util/patch_inline_callbacks.py 2 additions, 2 deletionssynapse/util/patch_inline_callbacks.py
Loading
Please register or sign in to comment