From 5e94c212355ccb0b3f7f03e7225e3508029c680f Mon Sep 17 00:00:00 2001 From: Yurii Motov Date: Thu, 11 Dec 2025 20:17:47 +0100 Subject: [PATCH] Remove code examples for Python 3.8 in `wsgi` --- docs/en/docs/advanced/wsgi.md | 2 +- docs_src/wsgi/{tutorial001.py => tutorial001_py39.py} | 0 tests/test_tutorial/test_wsgi/test_tutorial001.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename docs_src/wsgi/{tutorial001.py => tutorial001_py39.py} (100%) diff --git a/docs/en/docs/advanced/wsgi.md b/docs/en/docs/advanced/wsgi.md index 29fd2d359..07147df0a 100644 --- a/docs/en/docs/advanced/wsgi.md +++ b/docs/en/docs/advanced/wsgi.md @@ -12,7 +12,7 @@ Then wrap the WSGI (e.g. Flask) app with the middleware. And then mount that under a path. -{* ../../docs_src/wsgi/tutorial001.py hl[2:3,3] *} +{* ../../docs_src/wsgi/tutorial001_py39.py hl[2:3,3] *} ## Check it { #check-it } diff --git a/docs_src/wsgi/tutorial001.py b/docs_src/wsgi/tutorial001_py39.py similarity index 100% rename from docs_src/wsgi/tutorial001.py rename to docs_src/wsgi/tutorial001_py39.py diff --git a/tests/test_tutorial/test_wsgi/test_tutorial001.py b/tests/test_tutorial/test_wsgi/test_tutorial001.py index 4f8225273..9fe8c2a4b 100644 --- a/tests/test_tutorial/test_wsgi/test_tutorial001.py +++ b/tests/test_tutorial/test_wsgi/test_tutorial001.py @@ -1,6 +1,6 @@ from fastapi.testclient import TestClient -from docs_src.wsgi.tutorial001 import app +from docs_src.wsgi.tutorial001_py39 import app client = TestClient(app)