From aebc91bb270c7b737456e76073eafb71ce30e2f5 Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Mon, 22 Aug 2022 17:58:34 +0100 Subject: [PATCH 1/4] Export PrefixedSubAppResource in aiohttp.web. --- aiohttp/web.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aiohttp/web.py b/aiohttp/web.py index e771a61591c..0b465375659 100644 --- a/aiohttp/web.py +++ b/aiohttp/web.py @@ -137,6 +137,7 @@ AbstractRoute as AbstractRoute, DynamicResource as DynamicResource, PlainResource as PlainResource, + PrefixedSubAppResource as PrefixedSubAppResource, Resource as Resource, ResourceRoute as ResourceRoute, StaticResource as StaticResource, @@ -263,6 +264,7 @@ "AbstractRoute", "DynamicResource", "PlainResource", + "PrefixedSubAppResource", "Resource", "ResourceRoute", "StaticResource", From 0cb738f7369666fd5915590e53a26584e1829fc2 Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Mon, 22 Aug 2022 18:00:11 +0100 Subject: [PATCH 2/4] Create 6889.bugfix --- CHANGES/6889.bugfix | 1 + 1 file changed, 1 insertion(+) create mode 100644 CHANGES/6889.bugfix diff --git a/CHANGES/6889.bugfix b/CHANGES/6889.bugfix new file mode 100644 index 00000000000..752562a5963 --- /dev/null +++ b/CHANGES/6889.bugfix @@ -0,0 +1 @@ +Export PrefixedSubAppResource under aiohttp.web. From 3b37893f8b768ee0a1c0d55c79a3b124937e42ee Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Tue, 20 Sep 2022 14:46:43 +0200 Subject: [PATCH 3/4] Improve accuracy of the change note --- CHANGES/6889.bugfix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES/6889.bugfix b/CHANGES/6889.bugfix index 752562a5963..5a0e6cf8bbb 100644 --- a/CHANGES/6889.bugfix +++ b/CHANGES/6889.bugfix @@ -1 +1,3 @@ -Export PrefixedSubAppResource under aiohttp.web. +Export :py:class:`~aiohttp.web.PrefixedSubAppResource` under :py:mod:`aiohttp.web` -- by :user:`Dreamsorcerer`. + +This fixes a regression introduced by :pr:`3469`. From 8ed00618f875a55b5fb7fef05facb7adc7c80ec4 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Tue, 20 Sep 2022 14:47:17 +0200 Subject: [PATCH 4/4] Make the change note lines shorter --- CHANGES/6889.bugfix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES/6889.bugfix b/CHANGES/6889.bugfix index 5a0e6cf8bbb..ea438993d84 100644 --- a/CHANGES/6889.bugfix +++ b/CHANGES/6889.bugfix @@ -1,3 +1,4 @@ -Export :py:class:`~aiohttp.web.PrefixedSubAppResource` under :py:mod:`aiohttp.web` -- by :user:`Dreamsorcerer`. +Export :py:class:`~aiohttp.web.PrefixedSubAppResource` under +:py:mod:`aiohttp.web` -- by :user:`Dreamsorcerer`. This fixes a regression introduced by :pr:`3469`.