From 6dbeba36af21e0d10824ed671e45842e56f24a2d Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Sat, 6 Dec 2003 22:51:54 +0000 Subject: [PATCH] Added help for -nodirprot flag git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5492 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/Modules/python.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SWIG/Source/Modules/python.cxx b/SWIG/Source/Modules/python.cxx index 21587dfb1..300e5a9a6 100644 --- a/SWIG/Source/Modules/python.cxx +++ b/SWIG/Source/Modules/python.cxx @@ -14,7 +14,6 @@ char cvsroot_python_cxx[] = "$Header$"; #include "swigmod.h" #include "utils.h" - #ifndef MACSWIG #include "swigconfig.h" #endif @@ -68,6 +67,7 @@ Python Options (available with -python)\n\ -apply - Use apply() in proxy classes\n\ -new_repr - Use more informative version of __repr__ in proxy classes\n\ -noexcept - No automatic exception handling\n\ + -nodirprot - Don't wrap director protected members\n\ -noproxy - Don't generate proxy classes \n\n"; extern void Wrapper_director_protected_mode_set(int); @@ -1312,7 +1312,6 @@ public: /* declare Python return value */ Wrapper_add_local(w, "result", "PyObject *result"); - /* direct call to superclass if _up is set */ if (is_protected(n)) { Printf(w->code, "PyObject *obj = PyObject_GetAttrString(swig_get_self(), \"%s\");\n",