|
|
@ -1,18 +1,6 @@
|
|
|
|
From ec30ecf89f8788da139f73d9140de66fc21848d5 Mon Sep 17 00:00:00 2001
|
|
|
|
--- a/botocore/docs/method.py~ 2022-05-10 13:06:42.000000000 -0500
|
|
|
|
From: Hugo van Kemenade <hugovk@users.noreply.github.com>
|
|
|
|
+++ b/botocore/docs/method.py 2022-05-11 14:29:40.467083093 -0500
|
|
|
|
Date: Thu, 30 Sep 2021 15:21:40 +0300
|
|
|
|
@@ -101,13 +101,7 @@
|
|
|
|
Subject: [PATCH] Replace deprecated inspect.formatargspec with
|
|
|
|
|
|
|
|
inspect.signature
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
botocore/docs/method.py | 8 +-------
|
|
|
|
|
|
|
|
1 file changed, 1 insertion(+), 7 deletions(-)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/botocore/docs/method.py b/botocore/docs/method.py
|
|
|
|
|
|
|
|
index dbadd94313..e75a0e8e5c 100644
|
|
|
|
|
|
|
|
--- a/botocore/docs/method.py
|
|
|
|
|
|
|
|
+++ b/botocore/docs/method.py
|
|
|
|
|
|
|
|
@@ -96,13 +96,7 @@ def document_custom_signature(section, name, method,
|
|
|
|
|
|
|
|
:param exclude: The names of the parameters to exclude from
|
|
|
|
:param exclude: The names of the parameters to exclude from
|
|
|
|
documentation.
|
|
|
|
documentation.
|
|
|
|
"""
|
|
|
|
"""
|
|
|
@ -21,7 +9,7 @@ index dbadd94313..e75a0e8e5c 100644
|
|
|
|
- args=argspec.args[1:],
|
|
|
|
- args=argspec.args[1:],
|
|
|
|
- varargs=argspec.varargs,
|
|
|
|
- varargs=argspec.varargs,
|
|
|
|
- varkw=argspec.varkw,
|
|
|
|
- varkw=argspec.varkw,
|
|
|
|
- defaults=argspec.defaults
|
|
|
|
- defaults=argspec.defaults,
|
|
|
|
- )
|
|
|
|
- )
|
|
|
|
+ signature_params = str(inspect.signature(method))
|
|
|
|
+ signature_params = str(inspect.signature(method))
|
|
|
|
signature_params = signature_params.lstrip('(')
|
|
|
|
signature_params = signature_params.lstrip('(')
|
|
|
|