This is an automated email from the ASF dual-hosted git repository.

potiuk 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 9e55f51a9f Remove unused `_parse_version` function (#36450)
9e55f51a9f is described below

commit 9e55f51a9fd0555b910d97dff9482933dd42ed72
Author: Andrey Anshin <andrey.ans...@taragol.is>
AuthorDate: Wed Dec 27 20:32:20 2023 +0400

    Remove unused `_parse_version` function (#36450)
---
 airflow/providers/google/cloud/secrets/secret_manager.py | 6 ------
 airflow/providers/microsoft/azure/secrets/key_vault.py   | 6 ------
 2 files changed, 12 deletions(-)

diff --git a/airflow/providers/google/cloud/secrets/secret_manager.py 
b/airflow/providers/google/cloud/secrets/secret_manager.py
index 699f35812f..e8beadd009 100644
--- a/airflow/providers/google/cloud/secrets/secret_manager.py
+++ b/airflow/providers/google/cloud/secrets/secret_manager.py
@@ -18,7 +18,6 @@
 from __future__ import annotations
 
 import logging
-import re
 import warnings
 from typing import Sequence
 
@@ -38,11 +37,6 @@ log = logging.getLogger(__name__)
 SECRET_ID_PATTERN = r"^[a-zA-Z0-9-_]*$"
 
 
-def _parse_version(val):
-    match = re.search(r"(\d+)\.(\d+)\.(\d+)", val)
-    return tuple(int(x) for x in match.groups())
-
-
 class CloudSecretManagerBackend(BaseSecretsBackend, LoggingMixin):
     """
     Retrieves Connection object from Google Cloud Secrets Manager.
diff --git a/airflow/providers/microsoft/azure/secrets/key_vault.py 
b/airflow/providers/microsoft/azure/secrets/key_vault.py
index bfa9117b11..deb5a72796 100644
--- a/airflow/providers/microsoft/azure/secrets/key_vault.py
+++ b/airflow/providers/microsoft/azure/secrets/key_vault.py
@@ -26,7 +26,6 @@ from __future__ import annotations
 
 import logging
 import os
-import re
 import warnings
 from functools import cached_property
 
@@ -40,11 +39,6 @@ from airflow.secrets import BaseSecretsBackend
 from airflow.utils.log.logging_mixin import LoggingMixin
 
 
-def _parse_version(val):
-    match = re.search(r"(\d+)\.(\d+)\.(\d+)", val)
-    return tuple(int(x) for x in match.groups())
-
-
 class AzureKeyVaultBackend(BaseSecretsBackend, LoggingMixin):
     """
     Retrieves Airflow Connections or Variables from Azure Key Vault secrets.

Reply via email to