From 3dd49b9f567fdf14e7a616351805d1aac9a3083a Mon Sep 17 00:00:00 2001 From: Rob van der Linde Date: Thu, 28 Mar 2024 16:09:44 +1300 Subject: [PATCH] python: lint: remove unused imports in claims and gmsa commands Signed-off-by: Rob van der Linde Reviewed-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- python/samba/netcmd/domain/auth/policy/policy.py | 3 +-- python/samba/netcmd/domain/claim/claim_type.py | 2 +- python/samba/netcmd/service_account/group_msa_membership.py | 2 +- python/samba/netcmd/service_account/service_account.py | 4 +--- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/python/samba/netcmd/domain/auth/policy/policy.py b/python/samba/netcmd/domain/auth/policy/policy.py index fc06fd27705..5da74734f9d 100644 --- a/python/samba/netcmd/domain/auth/policy/policy.py +++ b/python/samba/netcmd/domain/auth/policy/policy.py @@ -22,8 +22,7 @@ import samba.getopt as options from samba.domain.models import (MAX_TGT_LIFETIME, MIN_TGT_LIFETIME, - AuthenticationPolicy, AuthenticationSilo, - Group, StrongNTLMPolicy) + AuthenticationPolicy, StrongNTLMPolicy) from samba.domain.models.exceptions import ModelError from samba.netcmd import Command, CommandError, Option from samba.netcmd.validators import Range diff --git a/python/samba/netcmd/domain/claim/claim_type.py b/python/samba/netcmd/domain/claim/claim_type.py index 312742fede6..fffc100e103 100644 --- a/python/samba/netcmd/domain/claim/claim_type.py +++ b/python/samba/netcmd/domain/claim/claim_type.py @@ -21,7 +21,7 @@ # import samba.getopt as options -from samba.domain.models import AttributeSchema, ClaimType, ClassSchema, ValueType +from samba.domain.models import AttributeSchema, ClaimType, ClassSchema from samba.domain.models.exceptions import ModelError from samba.netcmd import Command, CommandError, Option, SuperCommand diff --git a/python/samba/netcmd/service_account/group_msa_membership.py b/python/samba/netcmd/service_account/group_msa_membership.py index 34e7fa45b59..5a8291b4556 100644 --- a/python/samba/netcmd/service_account/group_msa_membership.py +++ b/python/samba/netcmd/service_account/group_msa_membership.py @@ -19,7 +19,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -from samba.domain.models import Group, GroupManagedServiceAccount, Model, User +from samba.domain.models import GroupManagedServiceAccount, Model, User from samba.domain.models.exceptions import ModelError from samba.getopt import CredentialsOptions, HostOptions, Option, SambaOptions from samba.netcmd import Command, CommandError, SuperCommand diff --git a/python/samba/netcmd/service_account/service_account.py b/python/samba/netcmd/service_account/service_account.py index f492c6ba1d7..8ad6cdd7225 100644 --- a/python/samba/netcmd/service_account/service_account.py +++ b/python/samba/netcmd/service_account/service_account.py @@ -20,9 +20,7 @@ # along with this program. If not, see . # -from samba.domain.models import (AccountType, Computer, Group, - GroupManagedServiceAccount, - SupportedEncryptionTypes, User) +from samba.domain.models import GroupManagedServiceAccount from samba.domain.models.exceptions import ModelError from samba.getopt import CredentialsOptions, HostOptions, Option, SambaOptions from samba.netcmd import Command, CommandError -- 2.11.4.GIT