You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by el...@apache.org on 2024/05/11 08:34:26 UTC
(airflow) branch main updated: Remove Airflow 2.6 back compact code (#39558)
This is an automated email from the ASF dual-hosted git repository.
eladkal pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 86caf84934 Remove Airflow 2.6 back compact code (#39558)
86caf84934 is described below
commit 86caf84934e056185d688f5b37dd45f630d05b5c
Author: Elad Kalif <45...@users.noreply.github.com>
AuthorDate: Sat May 11 11:34:19 2024 +0300
Remove Airflow 2.6 back compact code (#39558)
---
airflow/providers/google/cloud/hooks/bigquery.py | 7 +------
airflow/providers/google/cloud/operators/workflows.py | 7 ++-----
2 files changed, 3 insertions(+), 11 deletions(-)
diff --git a/airflow/providers/google/cloud/hooks/bigquery.py b/airflow/providers/google/cloud/hooks/bigquery.py
index 13465bbf84..0a279d95e5 100644
--- a/airflow/providers/google/cloud/hooks/bigquery.py
+++ b/airflow/providers/google/cloud/hooks/bigquery.py
@@ -72,12 +72,7 @@ from airflow.providers.google.common.hooks.base_google import (
GoogleBaseHook,
get_field,
)
-
-try:
- from airflow.utils.hashlib_wrapper import md5
-except ModuleNotFoundError:
- # Remove when Airflow providers min Airflow version is "2.7.0"
- from hashlib import md5
+from airflow.utils.hashlib_wrapper import md5
from airflow.utils.helpers import convert_camel_to_snake
from airflow.utils.log.logging_mixin import LoggingMixin
diff --git a/airflow/providers/google/cloud/operators/workflows.py b/airflow/providers/google/cloud/operators/workflows.py
index c42e0e2755..2a51d7569b 100644
--- a/airflow/providers/google/cloud/operators/workflows.py
+++ b/airflow/providers/google/cloud/operators/workflows.py
@@ -41,11 +41,8 @@ if TYPE_CHECKING:
from google.protobuf.field_mask_pb2 import FieldMask
from airflow.utils.context import Context
-try:
- from airflow.utils.hashlib_wrapper import md5
-except ModuleNotFoundError:
- # Remove when Airflow providers min Airflow version is "2.7.0"
- from hashlib import md5
+
+from airflow.utils.hashlib_wrapper import md5
class WorkflowsCreateWorkflowOperator(GoogleCloudBaseOperator):