Skip to content

Commit

Permalink
Remove unused _parse_version function (#36450)
Browse files Browse the repository at this point in the history
  • Loading branch information
Taragolis committed Dec 27, 2023
1 parent 8b723e4 commit 9e55f51
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions airflow/providers/google/cloud/secrets/secret_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
from __future__ import annotations

import logging
import re
import warnings
from typing import Sequence

Expand All @@ -38,11 +37,6 @@
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.
Expand Down
6 changes: 0 additions & 6 deletions airflow/providers/microsoft/azure/secrets/key_vault.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

import logging
import os
import re
import warnings
from functools import cached_property

Expand All @@ -40,11 +39,6 @@
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.
Expand Down

0 comments on commit 9e55f51

Please sign in to comment.