2016-06-16 00:39:12 +03:00
|
|
|
#
|
2018-04-14 10:13:23 +03:00
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one
|
|
|
|
# or more contributor license agreements. See the NOTICE file
|
|
|
|
# distributed with this work for additional information
|
|
|
|
# regarding copyright ownership. The ASF licenses this file
|
|
|
|
# to you 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
|
2018-05-22 00:22:35 +03:00
|
|
|
#
|
2018-04-14 10:13:23 +03:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2018-05-22 00:22:35 +03:00
|
|
|
#
|
2018-04-14 10:13:23 +03: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.
|
2020-01-21 20:00:52 +03:00
|
|
|
"""This module is deprecated. Please use `airflow.providers.postgres.hooks.postgres`."""
|
2016-06-16 00:39:12 +03:00
|
|
|
|
2020-01-21 20:00:52 +03:00
|
|
|
import warnings
|
2019-08-29 05:31:56 +03:00
|
|
|
|
2020-01-21 20:00:52 +03:00
|
|
|
# pylint: disable=unused-import
|
|
|
|
from airflow.providers.postgres.hooks.postgres import PostgresHook # noqa
|
2015-06-14 18:02:32 +03:00
|
|
|
|
2020-01-21 20:00:52 +03:00
|
|
|
warnings.warn(
|
|
|
|
"This module is deprecated. Please use `airflow.providers.postgres.hooks.postgres`.",
|
|
|
|
DeprecationWarning, stacklevel=2
|
|
|
|
)
|