Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop using twisted.internet.defer.returnValue #404

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

cjwatson
Copy link
Contributor

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.

`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.
Copy link
Member

@adiroiban adiroiban left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for the update. This can be merged.

@cjwatson cjwatson merged commit f0294ad into twisted:trunk Dec 10, 2024
19 checks passed
@cjwatson cjwatson deleted the remove-defer-returnValue branch December 10, 2024 11:49
@twm
Copy link
Contributor

twm commented Dec 12, 2024

I was scared there for a moment. Glad it was just an example. Thank you @cjwatson!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants