mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[mod] stop using old style class
This commit is contained in:
parent
ad56275801
commit
77058ab356
5 changed files with 6 additions and 6 deletions
|
@ -80,7 +80,7 @@ MB_ALLOWED_TO_ORGANIZE = 10
|
|||
logger = getActionLogger("yunohost.backup")
|
||||
|
||||
|
||||
class BackupRestoreTargetsManager(object):
|
||||
class BackupRestoreTargetsManager:
|
||||
|
||||
"""
|
||||
BackupRestoreTargetsManager manage the targets
|
||||
|
@ -1570,7 +1570,7 @@ class RestoreManager:
|
|||
#
|
||||
# Backup methods #
|
||||
#
|
||||
class BackupMethod(object):
|
||||
class BackupMethod:
|
||||
|
||||
"""
|
||||
BackupMethod is an abstract class that represents a way to backup and
|
||||
|
|
|
@ -469,7 +469,7 @@ class RedactingFormatter(Formatter):
|
|||
)
|
||||
|
||||
|
||||
class OperationLogger(object):
|
||||
class OperationLogger:
|
||||
|
||||
"""
|
||||
Instances of this class represents unit operation done on the ynh instance.
|
||||
|
|
|
@ -1107,7 +1107,7 @@ def _tools_migrations_run_before_app_restore(backup_version, app_id):
|
|||
raise
|
||||
|
||||
|
||||
class Migration(object):
|
||||
class Migration:
|
||||
|
||||
# Those are to be implemented by daughter classes
|
||||
|
||||
|
|
|
@ -678,7 +678,7 @@ class ConfigPanel:
|
|||
yield (panel, section, option)
|
||||
|
||||
|
||||
class Question(object):
|
||||
class Question:
|
||||
hide_user_input_in_prompt = False
|
||||
pattern: Optional[Dict] = None
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ def assert_password_is_strong_enough(profile, password):
|
|||
PasswordValidator(profile).validate(password)
|
||||
|
||||
|
||||
class PasswordValidator(object):
|
||||
class PasswordValidator:
|
||||
def __init__(self, profile):
|
||||
"""
|
||||
Initialize a password validator.
|
||||
|
|
Loading…
Add table
Reference in a new issue