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|
(diff, github, buildbot, log)
|Author:||itamar, vperic||Launchpad Bug:|
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.