From: Cédric Aguerre Date: Tue, 25 Jul 2017 12:32:52 +0000 (+0200) Subject: Deprecated presentations.py - CoTech91 X-Git-Tag: V8_4_0a1~1^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f554c2e46bbbbe6e2fe8d0ab5325c9e84445220c;p=modules%2Fparavis.git Deprecated presentations.py - CoTech91 --- 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