File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -459,11 +459,8 @@ def close(self: "HTTPResponse") -> None:
459459 self ._sentrysdk_span = None # type: ignore[attr-defined]
460460 _complete_span (span )
461461
462- HTTPConnection .putrequest = putrequest # type: ignore[method-assign]
463- # patch `HTTPConnection.putrequest()` first. urllib3 < 1.25.9 inherits it, so
464- # wrapping AWS classes first would skip URL and span recording. Once boto3-v1.16.63
465- # support is dropped, we won't have to worry about this issue.
466462 _patch_aws_connection ()
463+ HTTPConnection .putrequest = putrequest # type: ignore[method-assign]
467464 HTTPConnection .getresponse = getresponse # type: ignore[method-assign]
468465 HTTPResponse .read = read # type: ignore[method-assign]
469466 HTTPResponse .close = close # type: ignore[assignment,method-assign]
You can’t perform that action at this time.
0 commit comments