[mod] stop using old style class

This commit is contained in:
Laurent Peuch 2021-12-24 01:16:52 +01:00
parent ad56275801
commit 77058ab356
5 changed files with 6 additions and 6 deletions

View file

@ -80,7 +80,7 @@ MB_ALLOWED_TO_ORGANIZE = 10
logger = getActionLogger("yunohost.backup") logger = getActionLogger("yunohost.backup")
class BackupRestoreTargetsManager(object): class BackupRestoreTargetsManager:
""" """
BackupRestoreTargetsManager manage the targets BackupRestoreTargetsManager manage the targets
@ -1570,7 +1570,7 @@ class RestoreManager:
# #
# Backup methods # # Backup methods #
# #
class BackupMethod(object): class BackupMethod:
""" """
BackupMethod is an abstract class that represents a way to backup and BackupMethod is an abstract class that represents a way to backup and

View file

@ -469,7 +469,7 @@ class RedactingFormatter(Formatter):
) )
class OperationLogger(object): class OperationLogger:
""" """
Instances of this class represents unit operation done on the ynh instance. Instances of this class represents unit operation done on the ynh instance.

View file

@ -1107,7 +1107,7 @@ def _tools_migrations_run_before_app_restore(backup_version, app_id):
raise raise
class Migration(object): class Migration:
# Those are to be implemented by daughter classes # Those are to be implemented by daughter classes

View file

@ -678,7 +678,7 @@ class ConfigPanel:
yield (panel, section, option) yield (panel, section, option)
class Question(object): class Question:
hide_user_input_in_prompt = False hide_user_input_in_prompt = False
pattern: Optional[Dict] = None pattern: Optional[Dict] = None

View file

@ -51,7 +51,7 @@ def assert_password_is_strong_enough(profile, password):
PasswordValidator(profile).validate(password) PasswordValidator(profile).validate(password)
class PasswordValidator(object): class PasswordValidator:
def __init__(self, profile): def __init__(self, profile):
""" """
Initialize a password validator. Initialize a password validator.