2620: GEPS 031: Python 3 support - 3.2

round 2 for python 3 support:
* no more cmp, also not in sort and sorted
* bsddb needs bytestring keys
* gtk does not need utf-8 encoded anymore...


svn: r20658
This commit is contained in:
Benny Malengier
2012-11-15 08:08:31 +00:00
parent b9aafe5b49
commit 8b39b80dc8
45 changed files with 596 additions and 419 deletions

View File

@@ -118,16 +118,6 @@ QUALITY_MAP = {
Citation.CONF_VERY_LOW : "0",
}
#-------------------------------------------------------------------------
#
# sort_by_gramps_id
#
#-------------------------------------------------------------------------
def sort_by_gramps_id(first, second):
"""
Sort objects by their Gramps ID.
"""
return cmp(first.gramps_id, second.gramps_id)
#-------------------------------------------------------------------------
#