From 0367dd8ba03dbb32bd45a2cf10472ac2517b4efd Mon Sep 17 00:00:00 2001 From: A_D Date: Wed, 18 Nov 2020 11:19:42 +0200 Subject: [PATCH] Added legacy password subsystem to AbstractConfig --- config.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/config.py b/config.py index 0ebcb851..ce04d7e4 100644 --- a/config.py +++ b/config.py @@ -219,6 +219,18 @@ class AbstractConfig(abc.ABC): """Close this config and release any associated resources.""" raise NotImplementedError + def get_password(self, account: str) -> None: + """Legacy password retrieval.""" + warnings.warn("password subsystem is no longer supported", DeprecationWarning) + + def set_password(self, account: str, password: str) -> None: + """Legacy password setting.""" + warnings.warn("password subsystem is no longer supported", DeprecationWarning) + + def delete_password(self, account: str) -> None: + """Legacy password deletion.""" + warnings.warn("password subsystem is no longer supported", DeprecationWarning) + class WinConfig(AbstractConfig): """Implementation of AbstractConfig for windows."""