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

shahar pushed a commit to branch v2-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v2-10-test by this push:
     new eaff866927f [v2-10-test] Cease using ``InventoryFileReader`` (#45391) 
(#45538)
eaff866927f is described below

commit eaff866927f39b285109cbcc21ce8b3a2e08b623
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Jan 10 09:31:41 2025 +0200

    [v2-10-test] Cease using ``InventoryFileReader`` (#45391) (#45538)
    
    (cherry picked from commit 57be0631223c8a04bec8966f257c62cff9be2095)
    
    Co-authored-by: Adam Turner <[email protected]>
---
 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 9576a82b32c..e0766815ffc 100644
--- a/docs/exts/docs_build/fetch_inventories.py
+++ b/docs/exts/docs_build/fetch_inventories.py
@@ -30,7 +30,6 @@ from typing import Iterator
 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