increment_calculated_keyversion_number,
print_provision_ranges)
from samba.xattr import copytree_with_xattrs
+from samba.compat import cmp_to_key_fn
# make sure the script dies immediately when hitting control-C,
# rather than raising KeyboardInterrupt. As we do all database
# Sort the missing object in order to have object of the lowest level
# first (which can be containers for higher level objects)
- listMissing.sort(dn_sort)
- listPresent.sort(dn_sort)
+ listMissing.sort(key=cmp_to_key_fn(dn_sort))
+ listPresent.sort(key=cmp_to_key_fn(dn_sort))
# The following lines is to load the up to
# date schema into our current LDB