python3: reuse cmp_fn defined in compat.py
authorJoe Guo <joeg@catalyst.net.nz>
Mon, 30 Jul 2018 02:13:14 +0000 (14:13 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 17 Aug 2018 00:58:26 +0000 (02:58 +0200)
commitcd3b06fab0a3b5ac0730f8d025b7f20fdf1b3b30
tree51a53f54f7f86c44bd88ffb0cc806cff20e8c897
parent2f37149341afae74738bfd6560333b75edf2b89f
python3: reuse cmp_fn defined in compat.py

This will also fix PEP8 E306:

    expected 1 blank line before a nested definition, found 0

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/upgradehelpers.py