2013-01-24 12:00:30 -06:00
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
|
|
# not use this file except in compliance with the License. You may obtain
|
|
|
|
# a copy of the License at
|
2012-04-27 11:53:06 -05:00
|
|
|
#
|
2013-01-24 12:00:30 -06:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2012-04-27 11:53:06 -05:00
|
|
|
#
|
2013-01-24 12:00:30 -06:00
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
# License for the specific language governing permissions and limitations
|
|
|
|
# under the License.
|
2012-04-27 11:53:06 -05:00
|
|
|
#
|
|
|
|
|
2016-06-08 14:33:39 -05:00
|
|
|
# NOTE(dtroyer): This file is deprecated in Jun 2016, remove after 4.x release
|
|
|
|
# or Jun 2017.
|
2016-02-23 10:38:58 -06:00
|
|
|
|
2016-08-30 09:20:59 -05:00
|
|
|
import inspect
|
2016-06-08 14:33:39 -05:00
|
|
|
import sys
|
2012-04-27 11:53:06 -05:00
|
|
|
|
2016-06-08 14:33:39 -05:00
|
|
|
from osc_lib.exceptions import * # noqa
|
2012-04-27 11:53:06 -05:00
|
|
|
|
|
|
|
|
2016-08-30 09:20:59 -05:00
|
|
|
parent_import = inspect.getouterframes(inspect.currentframe())[1][1]
|
2016-06-08 14:33:39 -05:00
|
|
|
sys.stderr.write(
|
|
|
|
"WARNING: %s is deprecated and will be removed after Jun 2017. "
|
2016-08-30 09:20:59 -05:00
|
|
|
"Please use osc_lib.exceptions. This warning is caused by an "
|
|
|
|
"out-of-date import in %s\n" % (__name__, parent_import)
|
2016-06-08 14:33:39 -05:00
|
|
|
)
|