From de06e1af09bacb49109e4009e399ed3d6f1cecd2 Mon Sep 17 00:00:00 2001 From: wuzhaomin Date: Sat, 11 May 2024 11:14:35 +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 backport-Fix-typos-in-method-name-string-use-in-errors.patch diff --git a/backport-Fix-typos-in-method-name-string-use-in-errors.patch b/backport-Fix-typos-in-method-name-string-use-in-errors.patch new file mode 100644 index 0000000..d64048b --- /dev/null +++ b/backport-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.33.0 + diff --git a/python-wrapt.spec b/python-wrapt.spec index d24bb71..4175ae7 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: backport-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 +* Sta May 11 2024 wuzhaomin - 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