Source code for alignak.old_daemon_link

#!/usr/bin/env python
# -*- coding: utf-8 -*-

#  Copyright (C) 2015-2015: Alignak team, see AUTHORS.txt file for contributors
#
# This file is part of Alignak.
#
# Alignak is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Alignak is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Alignak.  If not, see <http://www.gnu.org/licenses/>.
"""This module used to provide daemon links. They have been moved to objects now
You will get deprecation warning if you use it

"""
import sys
import inspect
import warnings


[docs]def deprecation(msg, stacklevel=4): """Raise deprecation warning with message and level :param msg: message to print :type msg: str :param stacklevel: stack level :type stacklevel: int :return: None """ warnings.warn(msg, DeprecationWarning, stacklevel=stacklevel)