Eliminate the ambigious tp_compare from rpm.hdr
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 28 Oct 2009 13:22:39 +0000 (15:22 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 28 Oct 2009 14:02:47 +0000 (16:02 +0200)
commit3df9dc71118b498694437f083bb174d774cc6337
treea565277a3c200e81051f2e73721fb69cda5cf225
parenta5e123bc3e07fa6cc3fad13bc7f8a471ecb17d9b
Eliminate the ambigious tp_compare from rpm.hdr
- Avoids another Python 3 incompatibility as it doesn't have tp_compare
  anymore
- We could add a compatible tp_richcompare, but comparisons like
  'if h1 < h2: do foo' are highly ambiguous, callers are better of
  using explicit rpm.versinCompare(h1, h2) instead
python/header-py.c