1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/python/samba/kcc
Joe Guo 6eb3391cc2 kcc/graph: add __hash__ to InternalEdge for py3
In py3, if a class defines `__eq__()` but not `__hash__()`, its instances will
not be usable as items in hashable collections, e.g.: set.

Add `__hash__()` to InternalEdge, so it can be added to a set in py3.

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>
2018-04-13 07:27:13 +02:00
..
__init__.py kcc: fix sort for py3 2018-04-13 07:27:13 +02:00
debug.py samba_kcc: kcc.debug module defers to samba.colour 2018-01-13 17:37:07 +01:00
graph_utils.py kcc/kcc_utils: convert dict.keys to list 2018-04-13 07:27:13 +02:00
graph.py kcc/graph: add __hash__ to InternalEdge for py3 2018-04-13 07:27:13 +02:00
kcc_utils.py kcc: fix sort for py3 2018-04-13 07:27:13 +02:00
ldif_import_export.py samba python libs: convert 'except X, (tuple)' to 'except X as e' 2018-02-28 23:01:40 +01:00