From 10a2305332277e19a5e2214318069848acc8787c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E7=92=90?= Date: Fri, 10 May 2024 15:20:44 +0800 Subject: [PATCH] Fix typos in method name string use in errors --- ...-in-method-name-string-use-in-errors.patch | 29 +++++++++++++++++++ python-wrapt.spec | 6 +++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 Fix-typos-in-method-name-string-use-in-errors.patch diff --git a/Fix-typos-in-method-name-string-use-in-errors.patch b/Fix-typos-in-method-name-string-use-in-errors.patch new file mode 100644 index 0000000..5f9b98a --- /dev/null +++ b/Fix-typos-in-method-name-string-use-in-errors.patch @@ -0,0 +1,29 @@ +From bc2decfbd9e9273d17c56ca49f273e794e612a07 Mon Sep 17 00:00:00 2001 +From: Graham Dumpleton +Date: Thu, 6 Jul 2023 17:28:05 +1000 +Subject: [PATCH] Fix typos in method name string use in errors. + +--- + src/wrapt/_wrappers.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/wrapt/_wrappers.c b/src/wrapt/_wrappers.c +index fe1a7cc..e0e1b5b 100644 +--- a/src/wrapt/_wrappers.c ++++ b/src/wrapt/_wrappers.c +@@ -1146,10 +1146,10 @@ static PyObject *WraptObjectProxy_self_setattr( + PyObject *value = NULL; + + #if PY_MAJOR_VERSION >= 3 +- if (!PyArg_ParseTuple(args, "UO:__self_gsetattr__", &name, &value)) ++ if (!PyArg_ParseTuple(args, "UO:__self_setattr__", &name, &value)) + return NULL; + #else +- if (!PyArg_ParseTuple(args, "SO:___self_setattr__", &name, &value)) ++ if (!PyArg_ParseTuple(args, "SO:__self_setattr__", &name, &value)) + return NULL; + #endif + +-- +2.27.0 + diff --git a/python-wrapt.spec b/python-wrapt.spec index d24bb71..df24111 100644 --- a/python-wrapt.spec +++ b/python-wrapt.spec @@ -1,11 +1,12 @@ %global _empty_manifest_terminate_build 0 Name: python-wrapt Version: 1.15.0 -Release: 1 +Release: 2 Summary: A Python module for decorators, wrappers and monkey patching License: BSD-2-Clause URL: https://github.com/GrahamDumpleton/wrapt Source0: https://github.com/GrahamDumpleton/wrapt/archive/refs/tags/%{version}.tar.gz +Patch0: Fix-typos-in-method-name-string-use-in-errors.patch %description The aim of the wrapt module is to provide a transparent object proxy for Python, @@ -60,6 +61,9 @@ popd %doc docs/build/html %changelog +* Fri May 10 2024 lilu - 1.15.0-2 +- Fix typos in method name string use in errors + * Tue Apr 04 2023 xu_ping - 1.15.0-1 - Upgrade version to 1.15.0 -- Gitee