From f554c2e46bbbbe6e2fe8d0ab5325c9e84445220c Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Aguerre?= Date: Tue, 25 Jul 2017 14:32:52 +0200 Subject: [PATCH] Deprecated presentations.py - CoTech91 --- src/PV_SWIG/presentations.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/PV_SWIG/presentations.py b/src/PV_SWIG/presentations.py index 00021651..658eb39f 100644 --- a/src/PV_SWIG/presentations.py +++ b/src/PV_SWIG/presentations.py @@ -1,4 +1,4 @@ -# Copyright (C) 2010-2016 CEA/DEN, EDF R&D +# Copyright (C) 2010-2017 CEA/DEN, EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -22,10 +22,13 @@ This module is intended to provide Python API for building presentations typical for Post-Pro module (Scalar Map, Deformed Shape, Vectors, etc.) """ - from __future__ import division ##from __future__ import print_function +import warnings +warnings.simplefilter('always', DeprecationWarning) +warnings.warn("the presentations.py module is deprecated", DeprecationWarning, stacklevel=2) + import os import re import warnings -- 2.39.2