Skip to content

Commit f2488f9

Browse files
committed
Point at get_all() in the deprecation warning
1 parent 876f7a4 commit f2488f9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Lib/http/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,10 @@ def getallmatchingheaders(self, name):
211211
import warnings
212212
warnings._deprecated(
213213
"http.client.HTTPMessage.getallmatchingheaders",
214+
message=(
215+
"{name!r} is deprecated and slated for removal in Python "
216+
"{remove}. Use email.message.Message.get_all() instead."
217+
),
214218
remove=(3, 18),
215219
)
216220
name = name.lower() + ':'

0 commit comments

Comments
 (0)