diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-07-14 08:51:56 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-07-14 08:51:56 +0300 |
commit | cca57bf04c9b84da742743343077db9b3f6f7025 (patch) | |
tree | 0752000a7ff521caa93fe5b2729d9d6158894fb1 /source/blender/python/generic/idprop_py_api.c | |
parent | 06908955c3fe9948fff8a1cc195ce90b8d284431 (diff) |
PyAPI: Use module names on initializaton
No need to re-convert from C strings to PyUnicode.
Diffstat (limited to 'source/blender/python/generic/idprop_py_api.c')
-rw-r--r-- | source/blender/python/generic/idprop_py_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/generic/idprop_py_api.c b/source/blender/python/generic/idprop_py_api.c index db8ed072722..11646f3f3df 100644 --- a/source/blender/python/generic/idprop_py_api.c +++ b/source/blender/python/generic/idprop_py_api.c @@ -1560,7 +1560,7 @@ PyObject *BPyInit_idprop(void) /* idprop.types */ PyModule_AddObject(mod, "types", (submodule = BPyInit_idprop_types())); - PyDict_SetItemString(sys_modules, PyModule_GetName(submodule), submodule); + PyDict_SetItem(sys_modules, PyModule_GetNameObject(submodule), submodule); Py_INCREF(submodule); return mod; |