Skip to content

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