Skip to content
Snippets Groups Projects
Commit 61580306 authored by Manuel Günther's avatar Manuel Günther
Browse files

Removed duplicated constants from c module

parent f27de556
Branches
Tags
No related merge requests found
......@@ -173,9 +173,6 @@ static PyObject* create_module (void) {
if (!m) return 0;
auto m_ = make_safe(m);
/* register some constants */
if (PyModule_AddStringConstant(m, "__version__", BOB_EXT_MODULE_VERSION) < 0) return 0;
/* imports dependencies */
if (import_bob_blitz() < 0) {
PyErr_Print();
......
......@@ -167,8 +167,7 @@ static PyObject* create_module (void) {
auto m_ = make_safe(m); ///< protects against early returns
/* register version numbers and constants */
if (PyModule_AddStringConstant(m, "module", BOB_EXT_MODULE_VERSION) < 0)
return 0;
if (PyModule_AddStringConstant(m, "module", BOB_EXT_MODULE_VERSION) < 0) return 0;
if (PyModule_AddObject(m, "externals", build_version_dictionary()) < 0) return 0;
/* imports dependencies */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment