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

Code fixes for future versions of Twisted and Python #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

syndbg
Copy link

@syndbg syndbg commented Jan 11, 2015

As seen in ex2.py, this fixes the errback not being an Exception/Failure.

Off-topic: code examples aren't PEP-8. Is that intended or it's open for discussion/PR?

As seen in ex2.py, this fixes the errback not being an Exception/Failure.
While `has_key` is still valid in Python 2.x, `in` is more Pythonic and has a bit better performance. (no function call overhead)
Also `has_key` has been deprecated in Python 3.x
@syndbg syndbg changed the title Fixed ex4.py for future versions of Twisted Code fixes for future versions of Twisted and Python Jan 11, 2015
Copy link

@biggers biggers left a comment

Choose a reason for hiding this comment

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

@jesstess - please advise. Would also like a feature-branch, for work towards a Python3 port. Thanks!

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.

2 participants