python: move Validator base class and ValidationError to getopt
authorRob van der Linde <rob@catalyst.net.nz>
Thu, 5 Oct 2023 01:30:20 +0000 (14:30 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 24 Oct 2023 23:31:29 +0000 (23:31 +0000)
commitdc513a82a6a2795b22820146ca583cbe169a7499
treeec79b5d9dd0d7932e85668c027a7625bb4af4103
parent29c9991594f71c4fecc04f3d7701ab93e92ec7ab
python: move Validator base class and ValidationError to getopt

It makes more sense for these to exist in the top package, because they are used by SambaOption.

validators.py can still exist in netcmd, just not the base class and exception.

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/getopt.py
python/samba/netcmd/validators.py