Ticket #5627 enhancement closed fixed
Replace use of __cmp__ in twisted/python/versions.py
| Reported by: | vperic | Owned by: | itamar |
|---|---|---|---|
| Priority: | normal | Milestone: | Python 3.3 Minimal |
| Component: | core | Keywords: | py3k |
| Cc: | thijs | Branch: | branches/versions-cmp-5627-3 |
| Author: | itamar, vperic | Launchpad Bug: |
Description
cmp is not supported as of Python 3, in favor of rich comparison operators. Refactor twisted/python/versions.py (and the appropriate tests) to use rich comparison. As this is simple enough, just rename the current function and wrap it with rich comparison operators. This also allowed me to remove an internal class from the file. I have also updated the tests to cover one case not previously covered.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

