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:
Philipp Kraft 2018-06-08 00:31:49 +02:00 committed by Olly Betts
commit 0f88f9997c

4
Source/Modules/python.cxx Normal file → Executable file
View 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;