Skip to content

Commit

Permalink
Correctly import isabs from os.path (#45178)
Browse files Browse the repository at this point in the history
The #45139 imported isabs from "airflow.www.app" - but isabs has
been added there fairly recently and it is anyhow stdlib's os.path
isabs - so it should be imported from there.

This breaks fab 1.5.2 backport compatibility tests, so we need to
cherry-pick it there alongside #45139

(cherry picked from commit 7002966)
  • Loading branch information
potiuk committed Dec 24, 2024
1 parent ac764d0 commit 111e826
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@
import os
from contextlib import contextmanager
from functools import lru_cache
from os.path import isabs
from typing import TYPE_CHECKING, Generator

from flask import Flask

import airflow
from airflow.configuration import conf
from airflow.exceptions import AirflowConfigException
from airflow.www.app import isabs, make_url
from airflow.www.app import make_url
from airflow.www.extensions.init_appbuilder import init_appbuilder
from airflow.www.extensions.init_session import init_airflow_session_interface
from airflow.www.extensions.init_views import init_plugins
Expand Down

0 comments on commit 111e826

Please sign in to comment.