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

shahar 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 57be0631223 Cease using ``InventoryFileReader`` (#45391)
57be0631223 is described below

commit 57be0631223c8a04bec8966f257c62cff9be2095
Author: Adam Turner <[email protected]>
AuthorDate: Fri Jan 10 07:20:09 2025 +0000

    Cease using ``InventoryFileReader`` (#45391)
---
 docs/exts/docs_build/fetch_inventories.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/docs/exts/docs_build/fetch_inventories.py 
b/docs/exts/docs_build/fetch_inventories.py
index 04c64bc3e0e..f9865d062a1 100644
--- a/docs/exts/docs_build/fetch_inventories.py
+++ b/docs/exts/docs_build/fetch_inventories.py
@@ -30,7 +30,6 @@ from tempfile import NamedTemporaryFile
 import requests
 import urllib3.exceptions
 from requests.adapters import DEFAULT_POOLSIZE
-from sphinx.util.inventory import InventoryFileReader
 
 from airflow.utils.helpers import partition
 from docs.exts.docs_build.docs_builder import get_available_providers_packages
@@ -73,7 +72,7 @@ def _fetch_file(session: requests.Session, package_name: str, 
url: str, path: st
         tf.flush()
         tf.seek(0, 0)
 
-        line = InventoryFileReader(tf).readline()
+        line = tf.readline().decode()
         if not line.startswith("# Sphinx inventory version"):
             print(f"{package_name}: Response contain unexpected Sphinx 
Inventory header: {line!r}.")
             return package_name, False

Reply via email to