From 04a1d9182ff336f38da7d1f04de5a3824d995d21 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sat, 1 Nov 2008 23:09:26 +0000 Subject: [PATCH] Add patch #2128249 from Anatoly Techtonik which corrects the C/C++ proxy class being reported for Python docstrings when %rename is used git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10897 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- CHANGES.current | 4 ++++ Source/Modules/python.cxx | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGES.current b/CHANGES.current index 34117a214..2c59d49ce 100644 --- a/CHANGES.current +++ b/CHANGES.current @@ -3,6 +3,10 @@ Version 1.3.37 (in progress) ============================ +2008-11-01: wsfulton + Add patch #2128249 from Anatoly Techtonik which corrects the C/C++ proxy + class being reported for Python docstrings when %rename is used. + 2008-11-01: wsfulton Add the strip encoder patch from Anatoly Techtonik #2130016. This enables an easy way to rename symbols by stripping a commonly used prefix in all the diff --git a/Source/Modules/python.cxx b/Source/Modules/python.cxx index 9e6409af6..b455de890 100644 --- a/Source/Modules/python.cxx +++ b/Source/Modules/python.cxx @@ -1341,9 +1341,9 @@ public: String *str = Getattr(n, "feature:docstring"); if (str == NULL || Len(str) == 0) { if (CPlusPlus) { - Printf(doc, "Proxy of C++ %s class", class_name); + Printf(doc, "Proxy of C++ %s class", real_classname); } else { - Printf(doc, "Proxy of C %s struct", class_name); + Printf(doc, "Proxy of C %s struct", real_classname); } } }