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:
@@ -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)
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
Reference in New Issue
Block a user