From 2d9aca55c52a382acac1ee10b74cdde66612e2a6 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sat, 19 Jan 2019 00:10:40 -0400 Subject: [PATCH] Add a central module to define project warnings Add the mayan.apps.common.warnings module with an initial InterfaceWarning warning class used to mark use of deprecated internal interfaces. Signed-off-by: Roberto Rosario --- mayan/apps/common/warnings.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 mayan/apps/common/warnings.py diff --git a/mayan/apps/common/warnings.py b/mayan/apps/common/warnings.py new file mode 100644 index 0000000000..5365974f3e --- /dev/null +++ b/mayan/apps/common/warnings.py @@ -0,0 +1,7 @@ +from __future__ import absolute_import + + +class InterfaceWarning(UserWarning): + """ + Warning when using obsolete internal interfaces + """