Skip to content

Commit 9e55f51

Browse files
authored
Remove unused _parse_version function (#36450)
1 parent 8b723e4 commit 9e55f51

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

airflow/providers/google/cloud/secrets/secret_manager.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
from __future__ import annotations
1919

2020
import logging
21-
import re
2221
import warnings
2322
from typing import Sequence
2423

@@ -38,11 +37,6 @@
3837
SECRET_ID_PATTERN = r"^[a-zA-Z0-9-_]*$"
3938

4039

41-
def _parse_version(val):
42-
match = re.search(r"(\d+)\.(\d+)\.(\d+)", val)
43-
return tuple(int(x) for x in match.groups())
44-
45-
4640
class CloudSecretManagerBackend(BaseSecretsBackend, LoggingMixin):
4741
"""
4842
Retrieves Connection object from Google Cloud Secrets Manager.

airflow/providers/microsoft/azure/secrets/key_vault.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
import logging
2828
import os
29-
import re
3029
import warnings
3130
from functools import cached_property
3231

@@ -40,11 +39,6 @@
4039
from airflow.utils.log.logging_mixin import LoggingMixin
4140

4241

43-
def _parse_version(val):
44-
match = re.search(r"(\d+)\.(\d+)\.(\d+)", val)
45-
return tuple(int(x) for x in match.groups())
46-
47-
4842
class AzureKeyVaultBackend(BaseSecretsBackend, LoggingMixin):
4943
"""
5044
Retrieves Airflow Connections or Variables from Azure Key Vault secrets.

0 commit comments

Comments
 (0)