diff options
author | Christian Heimes <cheimes@redhat.com> | 2016-11-18 12:24:09 +0100 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-11-22 17:44:27 +0100 |
commit | 29947fe1a304ff6f913e5d94d56d8108a7c94087 (patch) | |
tree | 02c5635057ac0850e1c0308eefdf0ee6132f6fb6 /ipasetup.py.in | |
parent | 55b14abcb561422cf48755dae6b0638656535fe5 (diff) | |
download | freeipa-29947fe1a304ff6f913e5d94d56d8108a7c94087.tar.gz freeipa-29947fe1a304ff6f913e5d94d56d8108a7c94087.tar.xz freeipa-29947fe1a304ff6f913e5d94d56d8108a7c94087.zip |
Minor fixes for IPAVersion class
Py3: classes with __eq__ must provide __hash__ function or set __hash__
to None.
Comparison function like __eq__ must signal unsupported types by
returning NotImplemented. Python turns this in a proper TypeError.
Make the version member read-only and cache _bytes represention.
https://fedorahosted.org/freeipa/ticket/6473
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipasetup.py.in')
0 files changed, 0 insertions, 0 deletions