summaryrefslogtreecommitdiffstats
path: root/src/pythonize.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-09-24 11:34:13 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-09-24 11:34:13 -0500
commit036a0020a90077abdd504141a9d54f755673d40a (patch)
tree15e81db620cd2c358f8ff381ca0b62904ae32006 /src/pythonize.h
parentaa5db0802c4472ad9ffeeb7c0101abed1b415c73 (diff)
downloadpytdeextensions-036a0020a90077abdd504141a9d54f755673d40a.tar.gz
pytdeextensions-036a0020a90077abdd504141a9d54f755673d40a.zip
Properly re-export loaded module symbols as global
This relates to Bug 1995
Diffstat (limited to 'src/pythonize.h')
-rw-r--r--src/pythonize.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pythonize.h b/src/pythonize.h
index 6db64d2..23114ef 100644
--- a/src/pythonize.h
+++ b/src/pythonize.h
@@ -49,7 +49,7 @@ public:
// returns an object from a loaded module
// you must decref the object returned when done with it (new reference returned)
- PyObject *getNewObjectRef (PyObject *module, char *object) { return PyObject_GetAttrString (module, object); }
+ PyObject *getNewObjectRef (PyObject *module, const char *object) { return PyObject_GetAttrString (module, object); }
int getPythonInit () { return pythonInit; }
@@ -84,7 +84,7 @@ extern "C" {
// returns an object from a loaded module
// you must decref the object returned when done with it (new reference returned)
- PyObject *getNewObjectRef (PyObject *module, char *object);
+ PyObject *getNewObjectRef (PyObject *module, const char *object);
bool getPythonInit();