From d9e8e8ec597be6b36e81ac7c2094de387486ac67 Mon Sep 17 00:00:00 2001 From: Maciej Olko Date: Thu, 13 Aug 2026 02:30:44 +0200 Subject: [PATCH] [3.10] Docs: add standard-imghdr for compatibility with Python 3.13+ (#146623) * Add standard-imghdr for compatibility with Python 3.11+ * Fix syntax for Python version condition in requirements * Update standard-imghdr version condition for Python 3.13 --- Doc/requirements.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/requirements.txt b/Doc/requirements.txt index c6f768f82ed..835ef170669 100644 --- a/Doc/requirements.txt +++ b/Doc/requirements.txt @@ -10,6 +10,8 @@ sphinx==3.4.3 docutils==0.17.1 # Jinja version is pinned to a version compatible with Sphinx version <4.5. jinja2==3.0.3 +# Sphinx 3.4.3 uses imghdr which was removed from stdlib in Python 3.13 +standard-imghdr==3.13.0; python_version>'3.12' blurb