From a769bae12076a2fceffa47c9e548d148c2dd9136 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 17 Apr 2021 01:27:56 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20Deprecate=20the=20engi.command?= =?UTF-8?q?=20module?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- royalnet/engineer/command.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/royalnet/engineer/command.py b/royalnet/engineer/command.py index 2d918112..f1e79881 100644 --- a/royalnet/engineer/command.py +++ b/royalnet/engineer/command.py @@ -8,6 +8,7 @@ import royalnet.royaltyping as t import logging import re +import warnings from . import conversation as c from . import sentry as s @@ -18,6 +19,10 @@ from . import exc log = logging.getLogger(__name__) +warnings.warn("Commands are deprecated, please use the PDAs and Conversations instead!", + DeprecationWarning, stacklevel=2) + + class CommandException(exc.EngineerException): """ The base :class:`Exception` of the :mod:`royalnet.engineer.command`\\ module.