From 9cdd2ba64758545f59070a3e98801b4a8276be4b6d389876be0429c4a48cf70e Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 29 Oct 2024 17:09:02 +0000 Subject: [PATCH] Actually remove the patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argcomplete?expand=0&rev=81 --- argparse-3_12_7.patch | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 argparse-3_12_7.patch diff --git a/argparse-3_12_7.patch b/argparse-3_12_7.patch deleted file mode 100644 index c5b0775..0000000 --- a/argparse-3_12_7.patch +++ /dev/null @@ -1,22 +0,0 @@ -From 480d112ba488fa6825db877201577270053dacce Mon Sep 17 00:00:00 2001 -From: Eggry Ran -Date: Sun, 6 Oct 2024 16:16:49 +0800 -Subject: [PATCH] Fix issue #507 - ---- - argcomplete/packages/_argparse.py | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/argcomplete/packages/_argparse.py b/argcomplete/packages/_argparse.py -index 2a064f9..d10cf01 100644 ---- a/argcomplete/packages/_argparse.py -+++ b/argcomplete/packages/_argparse.py -@@ -162,6 +162,8 @@ def take_action(action, argument_strings, option_string=None): - def consume_optional(start_index): - # get the optional identified at this index - option_tuple = option_string_indices[start_index] -+ if isinstance(option_tuple, list): # Python 3.12.7+ -+ option_tuple = option_tuple[0] - if len(option_tuple) == 3: - action, option_string, explicit_arg = option_tuple - else: # Python 3.11.9+, 3.12.3+, 3.13+