Skip to content

Commit

Permalink
update remaining old import paths of operators (#15127)
Browse files Browse the repository at this point in the history
  • Loading branch information
eladkal committed Apr 1, 2021
1 parent a607002 commit 1d641d8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions airflow/contrib/sensors/weekday_sensor.py
Expand Up @@ -15,15 +15,15 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.sensors.weekday_sensor`."""
"""This module is deprecated. Please use `airflow.sensors.weekday`."""

import warnings

# pylint: disable=unused-import
from airflow.sensors.weekday import DayOfWeekSensor # noqa

warnings.warn(
"This module is deprecated. Please use `airflow.sensors.weekday_sensor`.",
"This module is deprecated. Please use `airflow.sensors.weekday`.",
DeprecationWarning,
stacklevel=2,
)
Expand Up @@ -22,7 +22,7 @@
from google.cloud.datacatalog_v1beta1 import FieldType, TagField, TagTemplateField

from airflow import models
from airflow.operators.bash_operator import BashOperator
from airflow.operators.bash import BashOperator
from airflow.providers.google.cloud.operators.datacatalog import (
CloudDataCatalogCreateEntryGroupOperator,
CloudDataCatalogCreateEntryOperator,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils/perf/dags/perf_dag_2.py
Expand Up @@ -21,7 +21,7 @@
from datetime import timedelta

from airflow.models import DAG
from airflow.operators.bash_operator import BashOperator
from airflow.operators.bash import BashOperator
from airflow.utils.dates import days_ago

args = {
Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils/perf/dags/sql_perf_dag.py
Expand Up @@ -18,7 +18,7 @@
from datetime import datetime, timedelta

from airflow.models.dag import DAG
from airflow.operators.python_operator import PythonOperator
from airflow.operators.python import PythonOperator

default_args = {
"owner": "Airflow",
Expand Down

0 comments on commit 1d641d8

Please sign in to comment.