]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Remove 2.6 compatibility code:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Tue, 17 Jun 2008 21:25:35 +0000 (21:25 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Tue, 17 Jun 2008 21:25:35 +0000 (21:25 +0000)
commit2ba198d2fbd8d4dd33d2c40af012d622eb03c18f
tree863cc1709d50fb8ea12a05281f5db766be4c4efe
parent35c8658a74d9b51c6c4755514b02fe3f9d6bb6b8
Remove 2.6 compatibility code:
now heapqueue items must implement the "<" operator.

The compatibility code could not work: all 3.0 objects have a __lt__ method
(which returns NotImplemented)

Twisted will have to adapt its DelayedCall class.
Lib/test/test_heapq.py
Modules/_heapqmodule.c