Stop exposing <CLASS>_swigregister to Python
It's not useful for user Python code to call this, and it just clutters the API unnecessarily. Fixes #1225
This commit is contained in:
parent
5d6a1b6858
commit
0f88f9997c
1 changed files with 2 additions and 2 deletions
4
Source/Modules/python.cxx
Normal file → Executable file
4
Source/Modules/python.cxx
Normal file → Executable file
|
|
@ -4684,8 +4684,8 @@ public:
|
|||
class_name);
|
||||
}
|
||||
}
|
||||
Printf(f_shadow_file, "%s_swigregister = %s.%s_swigregister\n", class_name, module, class_name);
|
||||
Printf(f_shadow_file, "%s_swigregister(%s)\n", class_name, class_name);
|
||||
Printf(f_shadow_file, "# Register %s in %s:\n", class_name, module);
|
||||
Printf(f_shadow_file, "%s.%s_swigregister(%s)\n", module, class_name, class_name);
|
||||
}
|
||||
|
||||
shadow_indent = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue