public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Martin Hoyer <mhoyer@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-configshell] rawhide: Remove obsolete, unused patch
Date: Wed, 25 Nov 2026 12:35:51 GMT	[thread overview]
Message-ID: <179561015142.1.11243737890935179037.rpms-python-configshell-2e8c993495bb@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/python-configshell
Branch : rawhide
Commit : 2e8c993495bb09e4ca8b31c3e7bb838f703bd46f
Author : Martin Hoyer <mhoyer@redhat.com>
Date   : 2026-11-25T13:26:44+01:00
Stats  : +0/-124 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/python-configshell/c/2e8c993495bb09e4ca8b31c3e7bb838f703bd46f?branch=rawhide

Log:
Remove obsolete, unused patch

---
diff --git a/0001-replace-getargspec-with-getfullargspec.patch b/0001-replace-getargspec-with-getfullargspec.patch
deleted file mode 100644
index dca73f3..0000000
--- a/0001-replace-getargspec-with-getfullargspec.patch
+++ /dev/null
@@ -1,124 +0,0 @@
-From 5322413dec1ff008e0181210ddf829a6899d115d Mon Sep 17 00:00:00 2001
-From: Maurizio Lombardi <mlombard@redhat.com>
-Date: Wed, 29 Jun 2022 14:38:42 +0200
-Subject: [PATCH 1/2] replace getargspec() with getfullargspec()
-
-inspect.getargspec() doesn't work anymore with Python3.11
-
-Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
----
- configshell/node.py | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/configshell/node.py b/configshell/node.py
-index 6af8642..811a730 100644
---- a/configshell/node.py
-+++ b/configshell/node.py
-@@ -1417,10 +1417,10 @@ class ConfigNode(object):
-         @type kparams: dict
-         @raise ExecutionError: When the check fails.
-         '''
--        spec = inspect.getargspec(method)
-+        spec = inspect.getfullargspec(method)
-         args = spec.args[1:]
-         pp = spec.varargs
--        kw = spec.keywords
-+        kw = spec.varkw
- 
-         if spec.defaults is None:
-             nb_opt_params = 0
-@@ -1460,7 +1460,7 @@ class ConfigNode(object):
-                 "Missing required parameters %s"
-                 % ", ".join("'%s'" % missing for missing in missing_params))
- 
--        if spec.keywords is None:
-+        if kw is None:
-             if len(unexpected_keywords) == 1:
-                 raise ExecutionError(
-                     "Unexpected keyword parameter '%s'."
--- 
-2.37.1
-
-
-From 8703e265828184c34fffa1ba539602dd23ae564c Mon Sep 17 00:00:00 2001
-From: Vojtech Trefny <vtrefny@redhat.com>
-Date: Tue, 19 Jul 2022 10:03:48 +0200
-Subject: [PATCH 2/2] Replace more occurrences of getargspec() with
- getfullargspec()
-
-Follow up for f3ac914861bd605e3d634aeeb5e706abdbd39259, getargspec
-was used at two more places.
-
-Signed-off-by: Vojtech Trefny <vtrefny@redhat.com>
----
- configshell/node.py | 32 ++++++++++++++++----------------
- 1 file changed, 16 insertions(+), 16 deletions(-)
-
-diff --git a/configshell/node.py b/configshell/node.py
-index 811a730..4f0ec9e 100644
---- a/configshell/node.py
-+++ b/configshell/node.py
-@@ -1575,12 +1575,12 @@ class ConfigNode(object):
-         @type command: str
-         '''
-         method = self.get_command_method(command)
--        parameters, args, kwargs, default = inspect.getargspec(method)
--        parameters = parameters[1:]
--        if default is None:
-+        spec = inspect.getfullargspec(method)
-+        parameters = spec.args[1:]
-+        if spec.defaults is None:
-             num_defaults = 0
-         else:
--            num_defaults = len(default)
-+            num_defaults = len(spec.defaults)
- 
-         if num_defaults != 0:
-             required_parameters = parameters[:-num_defaults]
-@@ -1605,16 +1605,16 @@ class ConfigNode(object):
-         syntax += optional_parameters_str
- 
-         comments = []
--        if args is not None:
--            syntax += "[%s...] " % args
--        if kwargs is not None:
--            syntax += "[%s=value...] " % (kwargs)
-+        if spec.varargs is not None:
-+            syntax += "[%s...] " % spec.varargs
-+        if spec.varkw is not None:
-+            syntax += "[%s=value...] " % (spec.varkw)
- 
-         default_values = ''
-         if num_defaults > 0:
-             for index, param in enumerate(optional_parameters):
--                if default[index] is not None:
--                    default_values += "%s=%s " % (param, str(default[index]))
-+                if spec.defaults[index] is not None:
-+                    default_values += "%s=%s " % (param, str(spec.defaults[index]))
- 
-         return syntax, comments, default_values
- 
-@@ -1630,14 +1630,14 @@ class ConfigNode(object):
-         @rtype: ([str...], bool, bool)
-         '''
-         method = self.get_command_method(command)
--        parameters, args, kwargs, default = inspect.getargspec(method)
--        parameters = parameters[1:]
--        if args is not None:
--            free_pparams = args
-+        spec = inspect.getfullargspec(method)
-+        parameters = spec.args[1:]
-+        if spec.varargs is not None:
-+            free_pparams = spec.varargs
-         else:
-             free_pparams = False
--        if kwargs is not None:
--            free_kparams = kwargs
-+        if spec.varkw is not None:
-+            free_kparams = spec.varkw
-         else:
-             free_kparams = False
-         self.shell.log.debug("Signature is %s, %s, %s."
--- 
-2.37.1
-

                 reply	other threads:[~2026-11-25 12:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179561015142.1.11243737890935179037.rpms-python-configshell-2e8c993495bb@fedoraproject.org \
    --to=mhoyer@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox